diff --git a/ghc/compiler/nativeGen/MachCode.lhs b/ghc/compiler/nativeGen/MachCode.lhs index 957a0d146cbaebef41462f2960ab47af99cf8a2b..f54c759ee6e9ea117b95ea3cc54821dbc3c8fb07 100644 --- a/ghc/compiler/nativeGen/MachCode.lhs +++ b/ghc/compiler/nativeGen/MachCode.lhs @@ -2410,7 +2410,7 @@ genCCall fn cconv kind args if (case sz of DF -> True; F -> True; _ -> False) then returnNat (size, code `appOL` - toOL [SUB L (OpImm (ImmInt 8)) (OpReg esp), + toOL [SUB L (OpImm (ImmInt size)) (OpReg esp), DELTA (delta-size), GST sz reg (AddrBaseIndex (Just esp) Nothing