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:
f16f92c
)
Fix a warning in DsForeign
author
Ian Lynagh
<igloo@earth.li>
Sat, 14 Jun 2008 21:53:46 +0000
(21:53 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 14 Jun 2008 21:53:46 +0000
(21:53 +0000)
compiler/deSugar/DsForeign.lhs
patch
|
blob
|
history
diff --git
a/compiler/deSugar/DsForeign.lhs
b/compiler/deSugar/DsForeign.lhs
index
9df0911
..
b4c938c
100644
(file)
--- a/
compiler/deSugar/DsForeign.lhs
+++ b/
compiler/deSugar/DsForeign.lhs
@@
-619,7
+619,9
@@
insertRetAddr _ args = args
-- need to flush a register argument to the stack (See rts/Adjustor.c for
-- details).
insertRetAddr CCallConv args = go 0 args
-- need to flush a register argument to the stack (See rts/Adjustor.c for
-- details).
insertRetAddr CCallConv args = go 0 args
- where go 6 args = ret_addr_arg : args
+ where go :: Int -> [(SDoc, SDoc, Type, MachRep)]
+ -> [(SDoc, SDoc, Type, MachRep)]
+ go 6 args = ret_addr_arg : args
go n (arg@(_,_,_,rep):args)
| I64 <- rep = arg : go (n+1) args
| otherwise = arg : go n args
go n (arg@(_,_,_,rep):args)
| I64 <- rep = arg : go (n+1) args
| otherwise = arg : go n args