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:
db7041f
)
[project @ 2001-02-20 15:37:42 by simonpj]
author
simonpj
<unknown>
Tue, 20 Feb 2001 15:37:42 +0000
(15:37 +0000)
committer
simonpj
<unknown>
Tue, 20 Feb 2001 15:37:42 +0000
(15:37 +0000)
Add another assert
ghc/compiler/coreSyn/CoreUnfold.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/coreSyn/CoreUnfold.lhs
b/ghc/compiler/coreSyn/CoreUnfold.lhs
index
df6acfb
..
756201a
100644
(file)
--- a/
ghc/compiler/coreSyn/CoreUnfold.lhs
+++ b/
ghc/compiler/coreSyn/CoreUnfold.lhs
@@
-571,7
+571,9
@@
callSiteInline dflags black_listed inline_call occ id arg_infos interesting_cont
-- Note: there used to be a '&& not top_level' in the guard above,
-- but that stopped us inlining top-level functions used only once,
-- which is stupid
-- Note: there used to be a '&& not top_level' in the guard above,
-- but that stopped us inlining top-level functions used only once,
-- which is stupid
- = not in_lam || not (null arg_infos) || interesting_cont
+ = WARN( not in_lam, ppr id ) -- If (not in_lam) && one_br then PreInlineUnconditionally
+ -- should have caught it, shouldn't it?
+ not (null arg_infos) || interesting_cont
| otherwise
= case guidance of
| otherwise
= case guidance of