X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcoreSyn%2FCoreUtils.lhs;fp=compiler%2FcoreSyn%2FCoreUtils.lhs;h=103b294098e1ddca28abe5bf4529cf4d5e940dd0;hp=1a217043262624cd7e5c518a8f108f7e0dcb2087;hb=afe4534704e8e0c25e2f90c6c0a2e397ecef24db;hpb=a6a4c8a8cc89b3ea664367163886fa712ff80a8f diff --git a/compiler/coreSyn/CoreUtils.lhs b/compiler/coreSyn/CoreUtils.lhs index 1a21704..103b294 100644 --- a/compiler/coreSyn/CoreUtils.lhs +++ b/compiler/coreSyn/CoreUtils.lhs @@ -72,6 +72,7 @@ import CostCentre import Unique import Outputable import TysPrim +import PrelNames( absentErrorIdKey ) import FastString import Maybes import Util @@ -670,7 +671,10 @@ exprOkForSpeculation (Case e _ _ alts) exprOkForSpeculation other_expr = case collectArgs other_expr of - (Var f, args) -> spec_ok (idDetails f) args + (Var f, args) | f `hasKey` absentErrorIdKey -- Note [Absent error Id] + -> all exprOkForSpeculation args -- in WwLib + | otherwise + -> spec_ok (idDetails f) args _ -> False where