load stack arguments from the right location

This commit is contained in:
Folkert 2023-10-08 18:45:59 +02:00
parent 46e8328056
commit 11bd8445b2
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -554,7 +554,11 @@ impl CallConv<AArch64GeneralReg, AArch64FloatReg, AArch64Assembler> for AArch64C
let mut state = AArch64CallStoreArgs {
general_i: 0,
float_i: 0,
tmp_stack_offset: Self::SHADOW_SPACE_SIZE as i32,
// 0 makes the math work, but I think we can make the math clearer with changes to
// setup_stack and cleanup_stack. Then we could use SHADOW_SPACE_SIZE here to mirror
// LoadArgs
// tmp_stack_offset: Self::SHADOW_SPACE_SIZE as i32,
tmp_stack_offset: 0,
};
for (sym, in_layout) in args.iter().zip(arg_layouts.iter()) {