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:
1bb549f
)
[project @ 1998-03-12 10:26:19 by sof]
author
sof
<unknown>
Thu, 12 Mar 1998 10:26:19 +0000
(10:26 +0000)
committer
sof
<unknown>
Thu, 12 Mar 1998 10:26:19 +0000
(10:26 +0000)
Include srcloc in panic msg
ghc/compiler/deSugar/DsCCall.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/deSugar/DsCCall.lhs
b/ghc/compiler/deSugar/DsCCall.lhs
index
eab46af
..
7e1bc0e
100644
(file)
--- a/
ghc/compiler/deSugar/DsCCall.lhs
+++ b/
ghc/compiler/deSugar/DsCCall.lhs
@@
-156,7
+156,8
@@
unboxArg arg
)
| otherwise
- = pprPanic "unboxArg: " (ppr arg_ty)
+ = getSrcLocDs `thenDs` \ l ->
+ pprPanic "unboxArg: " (ppr l <+> ppr arg_ty)
where
arg_ty = coreExprType arg