FIX panic from the GHC API
authorDavid Waern <davve@dtek.chalmers.se>
Sat, 14 Jul 2007 12:47:43 +0000 (12:47 +0000)
committerDavid 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

index d68058d..092d163 100644 (file)
@@ -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
                           }