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:
5723262
)
make a panic message more informative and suggest -dcore-lint (see #4534)
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 1 Dec 2010 15:17:06 +0000
(15:17 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 1 Dec 2010 15:17:06 +0000
(15:17 +0000)
compiler/codeGen/CgBindery.lhs
patch
|
blob
|
history
diff --git
a/compiler/codeGen/CgBindery.lhs
b/compiler/codeGen/CgBindery.lhs
index
59996c3
..
9a043f1
100644
(file)
--- a/
compiler/codeGen/CgBindery.lhs
+++ b/
compiler/codeGen/CgBindery.lhs
@@
-317,14
+317,14
@@
cgLookupPanic :: Id -> FCode a
cgLookupPanic id
= do static_binds <- getStaticBinds
local_binds <- getBinds
cgLookupPanic id
= do static_binds <- getStaticBinds
local_binds <- getBinds
- srt <- getSRTLabel
- pprPanic "cgPanic"
+-- srt <- getSRTLabel
+ pprPanic "cgLookupPanic (probably invalid Core; try -dcore-lint)"
(vcat [ppr id,
ptext (sLit "static binds for:"),
vcat [ ppr (cg_id info) | info <- varEnvElts static_binds ],
ptext (sLit "local binds for:"),
(vcat [ppr id,
ptext (sLit "static binds for:"),
vcat [ ppr (cg_id info) | info <- varEnvElts static_binds ],
ptext (sLit "local binds for:"),
- vcat [ ppr (cg_id info) | info <- varEnvElts local_binds ],
- ptext (sLit "SRT label") <+> pprCLabel srt
+ vcat [ ppr (cg_id info) | info <- varEnvElts local_binds ]
+-- ptext (sLit "SRT label") <+> pprCLabel srt
])
\end{code}
])
\end{code}