X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fvectorise%2FVectUtils.hs;h=533a8e769409987e37ee088e1d5642c0df1ffc43;hp=5c099c0fd306f0277d763f2380eb75050b82926a;hb=9fd454ab395b70946928ed92c3cb7b28a4d036bc;hpb=6029a9e18cfd5f510e2db3bb1fbfcc10f31146e0 diff --git a/compiler/vectorise/VectUtils.hs b/compiler/vectorise/VectUtils.hs index 5c099c0..533a8e7 100644 --- a/compiler/vectorise/VectUtils.hs +++ b/compiler/vectorise/VectUtils.hs @@ -451,6 +451,11 @@ mkLiftEnv lc [ty] [v] mkLiftEnv lc tys vs = do (env_tc, env_tyargs) <- parrayReprTyCon vty + + bndrs <- if null vs then do + v <- newDummyVar unitTy + return [v] + else return vs let [env_con] = tyConDataCons env_tc env = Var (dataConWrapId env_con) @@ -469,6 +474,3 @@ mkLiftEnv lc tys vs args | null vs = [Var unitDataConId] | otherwise = map Var vs - bndrs | null vs = [mkWildId unitTy] - | otherwise = vs -