projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-04-05 23:24:25 by sof]
[ghc-hetmet.git]
/
ghc
/
compiler
/
javaGen
/
JavaGen.lhs
diff --git
a/ghc/compiler/javaGen/JavaGen.lhs
b/ghc/compiler/javaGen/JavaGen.lhs
index
e46a1c6
..
ae6d19a
100644
(file)
--- a/
ghc/compiler/javaGen/JavaGen.lhs
+++ b/
ghc/compiler/javaGen/JavaGen.lhs
@@
-66,7
+66,7
@@
import Outputable
import Maybe
import PrimOp
import Maybe
import PrimOp
-import Util ( lengthIs )
+import Util ( lengthIs, notNull )
#include "HsVersions.h"
#include "HsVersions.h"
@@
-267,7
+267,7
@@
javaCase :: (Expr -> Statement) -> CoreExpr -> Id -> [CoreAlt] -> [Statement]
-- If we've got the wrong one, this is _|_, and the
-- casting will catch this with an exception.
-- If we've got the wrong one, this is _|_, and the
-- casting will catch this with an exception.
-javaCase r e x [(DataAlt d,bs,rhs)] | not (null bs)
+javaCase r e x [(DataAlt d,bs,rhs)] | notNull bs
= java_expr PushExpr e ++
[ var [Final] (javaName x)
(whnf primRep (vmPOP (primRepToType primRep))) ] ++
= java_expr PushExpr e ++
[ var [Final] (javaName x)
(whnf primRep (vmPOP (primRepToType primRep))) ] ++