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:
41c6c5d
)
Stopping tick boxes for being removed round calls to error.
author
andy@galois.com
<unknown>
Tue, 1 May 2007 15:57:29 +0000
(15:57 +0000)
committer
andy@galois.com
<unknown>
Tue, 1 May 2007 15:57:29 +0000
(15:57 +0000)
compiler/simplCore/Simplify.lhs
patch
|
blob
|
history
diff --git
a/compiler/simplCore/Simplify.lhs
b/compiler/simplCore/Simplify.lhs
index
25dc2ba
..
cab6460
100644
(file)
--- a/
compiler/simplCore/Simplify.lhs
+++ b/
compiler/simplCore/Simplify.lhs
@@
-1165,6
+1165,9
@@
rebuildCase env scrut case_bndr [(con,bndrs,rhs)] cont
-- The case binder is going to be evaluated later,
-- and the scrutinee is a simple variable
var_demanded_later (Var v) = isStrictDmd (idNewDemandInfo case_bndr)
+ && not (isTickBoxOp v)
+ -- ugly hack; covering this case is what
+ -- exprOkForSpeculation was intended for.
var_demanded_later other = False