Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a9109703
Commit
a9109703
authored
Sep 20, 2012
by
Simon Marlow
Browse files
add a missing entryCode
parent
2e8f08c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/cmm/CmmLayoutStack.hs
View file @
a9109703
...
...
@@ -5,6 +5,7 @@ module CmmLayoutStack (
import
StgCmmUtils
(
callerSaveVolatileRegs
)
-- XXX
import
StgCmmForeign
(
saveThreadState
,
loadThreadState
)
-- XXX
import
StgCmmLayout
(
entryCode
)
-- XXX
import
Cmm
import
BlockId
...
...
@@ -939,7 +940,8 @@ lowerSafeForeignCall dflags block
-- received an exception during the call, then the stack might be
-- different. Hence we continue by jumping to the top stack frame,
-- not by jumping to succ.
jump
=
CmmCall
{
cml_target
=
CmmLoad
(
CmmReg
spReg
)
(
bWord
dflags
)
jump
=
CmmCall
{
cml_target
=
entryCode
dflags
$
CmmLoad
(
CmmReg
spReg
)
(
bWord
dflags
)
,
cml_cont
=
Just
succ
,
cml_args_regs
=
regs
,
cml_args
=
widthInBytes
(
wordWidth
dflags
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment