projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6029a9e
)
Fix vectorisation bug
author
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Thu, 6 Dec 2007 23:30:15 +0000
(23:30 +0000)
committer
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Thu, 6 Dec 2007 23:30:15 +0000
(23:30 +0000)
compiler/vectorise/VectUtils.hs
patch
|
blob
|
history
diff --git
a/compiler/vectorise/VectUtils.hs
b/compiler/vectorise/VectUtils.hs
index
5c099c0
..
533a8e7
100644
(file)
--- 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
-