projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50a1fdb
)
[project @ 2000-01-13 17:01:16 by sewardj]
author
sewardj
<unknown>
Thu, 13 Jan 2000 17:01:16 +0000
(17:01 +0000)
committer
sewardj
<unknown>
Thu, 13 Jan 2000 17:01:16 +0000
(17:01 +0000)
stmt2Instrs: correctly handle StData with zero data words
ghc/compiler/nativeGen/MachCode.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/nativeGen/MachCode.lhs
b/ghc/compiler/nativeGen/MachCode.lhs
index
b10a17e
..
d59a3f5
100644
(file)
--- a/
ghc/compiler/nativeGen/MachCode.lhs
+++ b/
ghc/compiler/nativeGen/MachCode.lhs
@@
-64,7
+64,7
@@
stmt2Instrs stmt = case stmt of
StData kind args
-> mapAndUnzipUs getData args `thenUs` \ (codes, imms) ->
returnUs (\xs -> mkSeqList (asmInstr (DATA (primRepToSize kind) imms))
- (foldr1 (.) codes xs))
+ (foldr (.) id codes xs))
where
getData :: StixTree -> UniqSM (InstrBlock, Imm)