X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fvectorise%2FVectUtils.hs;h=fcdcfd9e01f1929aa3b887e9a2f152410ffc36ef;hb=df6bc2ccddd8ff359e0381f4bb47e772e999029a;hp=a540b4d10c20102fa5c609d376e032ce696cb45d;hpb=7c737416e30137e7053b4bcd0fdd563f07fa43b0;p=ghc-hetmet.git diff --git a/compiler/vectorise/VectUtils.hs b/compiler/vectorise/VectUtils.hs index a540b4d..fcdcfd9 100644 --- a/compiler/vectorise/VectUtils.hs +++ b/compiler/vectorise/VectUtils.hs @@ -455,7 +455,7 @@ mkLiftEnv lc tys vs env = Var (dataConWrapId env_con) `mkTyApps` env_tyargs - `mkVarApps` (lc : vs) + `mkApps` (Var lc : args) bind env body = let scrut = unwrapFamInstScrut env_tc env_tyargs env in @@ -466,6 +466,9 @@ mkLiftEnv lc tys vs where vty = mkCoreTupTy tys + args | null vs = [Var unitDataConId] + | otherwise = map Var vs + bndrs | null vs = [mkWildId unitTy] | otherwise = vs