diff options
author | Simon Marlow <marlowsd@gmail.com> | 2018-02-18 11:08:52 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-02-18 11:57:45 -0500 |
commit | ccda4862102104e080a200e4d9c2ca8f42eb5b70 (patch) | |
tree | ec60814f7262b71dc0dff0bd1706f9a0efc24923 /compiler/codeGen/StgCmmUtils.hs | |
parent | bfb90bcab844ded9051370b822f0a9582c35e83e (diff) | |
download | haskell-ccda4862102104e080a200e4d9c2ca8f42eb5b70.tar.gz |
Tidy up and consolidate canned CmmReg and CmmGlobals
Test Plan: validate
Reviewers: bgamari, erikd
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4380
Diffstat (limited to 'compiler/codeGen/StgCmmUtils.hs')
-rw-r--r-- | compiler/codeGen/StgCmmUtils.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/codeGen/StgCmmUtils.hs b/compiler/codeGen/StgCmmUtils.hs index b6092e8358..94013f5c6d 100644 --- a/compiler/codeGen/StgCmmUtils.hs +++ b/compiler/codeGen/StgCmmUtils.hs @@ -280,7 +280,7 @@ regTableOffset dflags n = get_Regtable_addr_from_offset :: DynFlags -> CmmType -> Int -> CmmExpr get_Regtable_addr_from_offset dflags _rep offset = if haveRegBase (targetPlatform dflags) - then CmmRegOff (CmmGlobal BaseReg) offset + then CmmRegOff baseReg offset else regTableOffset dflags offset |