Skip to content

Commit e3a8796

Browse files
committed
Remove outdated stack size adjustment
We don't save the function pointer to the stack anymore, so we shouldn't be adding a slot in the indirect call wrapper case. This wasn't breaking anything unless we had a return value on the stack.
1 parent 81269fc commit e3a8796

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/rewriter/GenCallAsm.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -646,10 +646,6 @@ std::string emit_asm_wrapper(const CAbiSignature &sig,
646646
size_t stack_return_align = 16;
647647
size_t stack_return_padding = 0;
648648
size_t start_of_ret_space = 0;
649-
if (kind == WrapperKind::IndirectCallsite) {
650-
// Count the space for the function pointer if the call is indirect.
651-
start_of_ret_space += 8;
652-
}
653649

654650
if (stack_return_size > 0) {
655651
// If we have a stack return, we also have to save the old ret ptr, which

0 commit comments

Comments
 (0)