summaryrefslogtreecommitdiff
path: root/compiler/GHC/CmmToAsm.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-01-27 14:47:33 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-04 16:14:47 -0500
commit99ea5f2cfa09f50bf3ea105821dc095942552e59 (patch)
tree87cfa9dbe92582d390f242bad5971e315cd76c3d /compiler/GHC/CmmToAsm.hs
parent7217156c40240c0aed5ffd83ead0fe4ba0484c75 (diff)
downloadhaskell-99ea5f2cfa09f50bf3ea105821dc095942552e59.tar.gz
Introduce alignment to CmmStore
Diffstat (limited to 'compiler/GHC/CmmToAsm.hs')
-rw-r--r--compiler/GHC/CmmToAsm.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/CmmToAsm.hs b/compiler/GHC/CmmToAsm.hs
index ddfcce8460..29ec7559f6 100644
--- a/compiler/GHC/CmmToAsm.hs
+++ b/compiler/GHC/CmmToAsm.hs
@@ -1023,10 +1023,10 @@ cmmStmtConFold stmt
CmmReg reg' | reg == reg' -> CmmComment (fsLit "nop")
new_src -> CmmAssign reg new_src
- CmmStore addr src
+ CmmStore addr src align
-> do addr' <- cmmExprConFold DataReference addr
src' <- cmmExprConFold DataReference src
- return $ CmmStore addr' src'
+ return $ CmmStore addr' src' align
CmmCall { cml_target = addr }
-> do addr' <- cmmExprConFold JumpReference addr