projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d5e92d
)
Make sure DEFAULT always comes first in generated PA dictionaries
author
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Thu, 26 Jul 2007 05:22:39 +0000
(
05:22
+0000)
committer
Roman Leshchinskiy
<rl@cse.unsw.edu.au>
Thu, 26 Jul 2007 05:22:39 +0000
(
05:22
+0000)
compiler/vectorise/VectType.hs
patch
|
blob
|
history
diff --git
a/compiler/vectorise/VectType.hs
b/compiler/vectorise/VectType.hs
index
aed3e2a
..
9d9db53
100644
(file)
--- a/
compiler/vectorise/VectType.hs
+++ b/
compiler/vectorise/VectType.hs
@@
-398,7
+398,7
@@
buildReplicatePA vect_tc arr_tc
arr_ty <- mkPArrayType ty
return $ Case val wild arr_ty
- [(DataAlt dc, pre ++ (var : post), rep), (DEFAULT, [], empty)]
+ [(DEFAULT, [], empty), (DataAlt dc, pre ++ (var : post), rep)]
-- | Split the given tycons into two sets depending on whether they have to be
-- converted (first list) or not (second list). The first argument contains