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:
8ae1a8c
)
FIX panic from the GHC API
author
David Waern
<davve@dtek.chalmers.se>
Sat, 14 Jul 2007 12:47:43 +0000
(12:47 +0000)
committer
David Waern
<davve@dtek.chalmers.se>
Sat, 14 Jul 2007 12:47:43 +0000
(12:47 +0000)
In hscFileCheck, initialize md_vect_info with noVectInfo instead of
a panic value, since this is a strict field.
compiler/main/HscMain.lhs
patch
|
blob
|
history
diff --git
a/compiler/main/HscMain.lhs
b/compiler/main/HscMain.lhs
index
d68058d
..
092d163
100644
(file)
--- a/
compiler/main/HscMain.lhs
+++ b/
compiler/main/HscMain.lhs
@@
-694,8
+694,7
@@
hscFileCheck hsc_env mod_summary compileToCore = do {
md_rules = [panic "no rules"],
-- Rules are CoreRules, not the
-- RuleDecls we get out of the typechecker
- md_vect_info =
- panic "HscMain.hscFileCheck: no VectInfo"
+ md_vect_info = noVectInfo
-- VectInfo is added by the Core
-- vectorisation pass
}