summaryrefslogtreecommitdiff
path: root/compiler/codeGen/StgCmmUtils.hs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-09-18 20:44:20 +0100
committerIan Lynagh <ian@well-typed.com>2012-09-18 20:44:20 +0100
commit3a4c64c1a2953bbc759a6f5c99dad31ab50dc96b (patch)
tree6cc936273ae8993b1ab970c1e4e5f623cfd93920 /compiler/codeGen/StgCmmUtils.hs
parent8244ec3416d6db22444e157731deb4d7b5e13824 (diff)
downloadhaskell-3a4c64c1a2953bbc759a6f5c99dad31ab50dc96b.tar.gz
Make StgHalfWord a portable type
It's now a newtyped Integer. Perhaps a newtyped Word32 would make more sense, though.
Diffstat (limited to 'compiler/codeGen/StgCmmUtils.hs')
-rw-r--r--compiler/codeGen/StgCmmUtils.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/codeGen/StgCmmUtils.hs b/compiler/codeGen/StgCmmUtils.hs
index 4471b78151..f5dc2b6d31 100644
--- a/compiler/codeGen/StgCmmUtils.hs
+++ b/compiler/codeGen/StgCmmUtils.hs
@@ -720,5 +720,5 @@ assignTemp' e
emitAssign reg e
return (CmmReg reg)
-srt_escape :: StgHalfWord
-srt_escape = -1
+srt_escape :: DynFlags -> StgHalfWord
+srt_escape dflags = toStgHalfWord dflags (-1)