X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Fmain%2FHscMain.lhs;h=3ab10a431c196de9731ac5fc81a029fcf6652827;hb=ab90e5fa171913fe777b2b6909030e3967e72bc6;hp=933503e4915742d14184463212503051a61a4b62;hpb=b017f34bebf1588e5e579d7c653413e2a4c2d170;p=ghc-hetmet.git diff --git a/compiler/main/HscMain.lhs b/compiler/main/HscMain.lhs index 933503e..3ab10a4 100644 --- a/compiler/main/HscMain.lhs +++ b/compiler/main/HscMain.lhs @@ -1026,6 +1026,11 @@ hscParseThing parser dflags str compileExpr :: HscEnv -> SrcSpan -> CoreExpr -> IO HValue compileExpr hsc_env srcspan ds_expr + | rtsIsProfiled + = panic "You can't call compileExpr in a profiled compiler" + -- Otherwise you get a seg-fault when you run it + + | otherwise = do { let { dflags = hsc_dflags hsc_env ; lint_on = dopt Opt_DoCoreLinting dflags }