X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FDsForeign.lhs;h=b4c938c1e946a17d01e5901f024a26c867f3b629;hb=cae75f82226638691cfa1e85fc168f4b65ddce4d;hp=9df091179144185f5c4042368a02113e85dc0e77;hpb=0e7150a93803531c5214662f7b26109dcabb30b2;p=ghc-hetmet.git diff --git a/compiler/deSugar/DsForeign.lhs b/compiler/deSugar/DsForeign.lhs index 9df0911..b4c938c 100644 --- 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 - 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