X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fcmm%2FCmmCPS.hs;h=7bfdf8437e054485c7b3f64602f3def17f53ed89;hb=e21c922fcdd1dac193bd8ff5670787daa3c21a12;hp=c5bcdc321555eb953855c0f23878a9f03e8ce2cc;hpb=1e50fd4185479a62e02d987bdfcb1c62712859ca;p=ghc-hetmet.git diff --git a/compiler/cmm/CmmCPS.hs b/compiler/cmm/CmmCPS.hs index c5bcdc3..7bfdf84 100644 --- a/compiler/cmm/CmmCPS.hs +++ b/compiler/cmm/CmmCPS.hs @@ -42,7 +42,7 @@ cmmCPS :: DynFlags -- ^ Dynamic flags: -dcmm-lint -ddump-cps-cmm cmmCPS dflags cmm_with_calls = do { when (dopt Opt_DoCmmLinting dflags) $ do showPass dflags "CmmLint" - case firstJust $ map cmmLint cmm_with_calls of + case firstJusts $ map cmmLint cmm_with_calls of Just err -> do printDump err ghcExit dflags 1 Nothing -> return () @@ -235,6 +235,7 @@ gatherBlocksIntoContinuation live proc_points blocks start = children = (collectNonProcPointTargets proc_points blocks (unitUniqSet start) [start]) `minusUniqSet` (unitUniqSet start) start_block = lookupWithDefaultBEnv blocks unknown_block start children_blocks = map (lookupWithDefaultBEnv blocks unknown_block) (uniqSetToList children) + unknown_block :: a -- Used at more than one type unknown_block = panic "unknown block in gatherBlocksIntoContinuation" body = start_block : children_blocks