Skip to content

Commit 46c93ca

Browse files
authored
fixes calling convention for ms64 (#1533)
Large objects are passed via an explicit reference, not implicit (hidden).
1 parent 2b789c4 commit 46c93ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/x86_cpu/x86_target.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ module Abi = struct
440440
otherwise, pass Arg.register irets;
441441
] in
442442
describe ~return @@ fun ~alignment:_ size -> select [
443-
is (size > 64), pass Arg.reference iregs;
443+
is (size > 64), pass Arg.pointer iregs;
444444
C.Type.is_floating, pass Arg.register vregs;
445445
otherwise, pass Arg.register iregs;
446446
]

0 commit comments

Comments
 (0)