From ad2a0a2ed1723bf7e7c758733c8b0f676de139eb Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 4 Jan 2016 17:21:50 +0100 Subject: StgCmmForeign: Kill erroneous dereference --- compiler/codeGen/StgCmmForeign.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/codeGen/StgCmmForeign.hs b/compiler/codeGen/StgCmmForeign.hs index cb185ea113..0b870ec1af 100644 --- a/compiler/codeGen/StgCmmForeign.hs +++ b/compiler/codeGen/StgCmmForeign.hs @@ -309,7 +309,7 @@ saveThreadState dflags initialSp = do CmmLoad (cmmOffset dflags stgCurrentTSO (tso_stackobj dflags)) (bWord dflags) spValue = cmmOffset dflags tsoValue (stack_SP dflags) - in mkUnwind (NewLabel lbl) Sp (initial $ CmmLoad spValue (bWord dflags)) + in mkUnwind (NewLabel lbl) Sp (initial spValue) _ -> mkNop, close_nursery, -- and save the current cost centre stack in the TSO when profiling: -- cgit v1.2.1