Add a missing "entryCode"
authorIan Lynagh <igloo@earth.li>
Sat, 25 Aug 2007 17:12:31 +0000 (17:12 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 25 Aug 2007 17:12:31 +0000 (17:12 +0000)
This was causing us to try to jump to the address of an infotable when
unregisterised, leading to a segfault.

compiler/codeGen/CgTailCall.lhs

index e25e794..cd51fba 100644 (file)
@@ -191,7 +191,7 @@ performTailCall fun_info arg_amodes pending_assts
                    -- No, enter the closure.
                    ; enterClosure
                    ; labelC is_constr
-                   ; stmtC (CmmJump (CmmLit (CmmLabel lbl)) [])
+                   ; stmtC (CmmJump (entryCode $ CmmLit (CmmLabel lbl)) [])
                    }
 {-
               -- This is a scrutinee for a case expression