Skip to content
Snippets Groups Projects
Commit 76fe2b75 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

codeGen: Use relaxed-read in closureInfoPtr

parent ef8ccef5
No related branches found
No related tags found
No related merge requests found
...@@ -449,7 +449,7 @@ wordAligned platform align_check e ...@@ -449,7 +449,7 @@ wordAligned platform align_check e
-- | Takes a closure pointer and returns the info table pointer -- | Takes a closure pointer and returns the info table pointer
closureInfoPtr :: Platform -> DoAlignSanitisation -> CmmExpr -> CmmExpr closureInfoPtr :: Platform -> DoAlignSanitisation -> CmmExpr -> CmmExpr
closureInfoPtr platform align_check e = closureInfoPtr platform align_check e =
cmmLoadBWord platform (wordAligned platform align_check e) CmmMachOp (MO_RelaxedRead (wordWidth platform)) [wordAligned platform align_check e]
-- | Takes an info pointer (the first word of a closure) and returns its entry -- | Takes an info pointer (the first word of a closure) and returns its entry
-- code -- code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment