Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
98f86b1c
Commit
98f86b1c
authored
Jan 19, 2000
by
sewardj
Browse files
[project @ 2000-01-19 16:47:16 by sewardj]
amodeToStix: correctly compute offset for CHARLIKE_closure-s.
parent
623a7c05
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/nativeGen/StixPrim.lhs
View file @
98f86b1c
...
...
@@ -352,7 +352,7 @@ amodeToStix (CCharLike (CLit (MachChar c)))
amodeToStix (CCharLike x)
= StIndex PtrRep charLike off
where
off = StPrim IntMulOp [amodeToStix x, StInt (toInteger
(fixedHdr
Size
+1)
)]
off = StPrim IntMulOp [amodeToStix x, StInt (toInteger
charLike
Size)]
amodeToStix (CIntLike (CLit (MachInt i _)))
= StLitLbl ((<>) (ptext SLIT("INTLIKE_closure+")) (int off))
...
...
Write
Preview
Supports
Markdown
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