summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-08-25 17:12:31 +0000
committerIan Lynagh <igloo@earth.li>2007-08-25 17:12:31 +0000
commit06c7fd3fd47dade1c07f200ea8b7e34fc703e6e5 (patch)
treed2fd5065144fcf42ec188858d0ce2e0d4f9e106f /compiler/codeGen
parenta8b5e840ebb42522992749eb9afd1a9ba870d234 (diff)
downloadhaskell-06c7fd3fd47dade1c07f200ea8b7e34fc703e6e5.tar.gz
Add a missing "entryCode"
This was causing us to try to jump to the address of an infotable when unregisterised, leading to a segfault.
Diffstat (limited to 'compiler/codeGen')
-rw-r--r--compiler/codeGen/CgTailCall.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/codeGen/CgTailCall.lhs b/compiler/codeGen/CgTailCall.lhs
index e25e794d58..cd51fbaeeb 100644
--- a/compiler/codeGen/CgTailCall.lhs
+++ b/compiler/codeGen/CgTailCall.lhs
@@ -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