Skip to content
Snippets Groups Projects
Commit def46c8c authored by amesgen's avatar amesgen Committed by Marge Bot
Browse files

compiler: handle CmmRegOff in lower_CmmExpr_Ptr

parent fb629e24
No related branches found
No related tags found
No related merge requests found
......@@ -1048,6 +1048,8 @@ lower_CmmExpr_Ptr lbl ptr = do
let (ptr', o) = case ptr of
CmmLit (CmmLabelOff lbl o)
| o >= 0 -> (CmmLit $ CmmLabel lbl, o)
CmmRegOff reg o
| o >= 0 -> (CmmReg reg, o)
CmmMachOp (MO_Add _) [base, CmmLit (CmmInt o _)]
| o >= 0 -> (base, fromInteger o)
_ -> (ptr, 0)
......
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