Skip to content

Commit e85f6ca

Browse files
committed
Patch up another place where the newly-expanded 'closure-ptr' implicit arg needs to be passed. Amazingly, it mostly-worked without this. On some platforms.
1 parent 1ffcb7d commit e85f6ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/boot/be/x86.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,8 @@ let crawl_stack_calling_glue
784784
(codefix skip_jmp_fix)); (* if glue-fn is nonzero *)
785785
add ecx esi; (* add crate ptr to disp. *)
786786
push (ro ebp); (* frame-arg *)
787-
push (c task_ptr); (* form usual call to glue *)
787+
push (immi 0L); (* null closure-ptr *)
788+
push (c task_ptr); (* self-task ptr *)
788789
push (immi 0L); (* outptr *)
789790
emit (Il.call (rc eax)
790791
(reg_codeptr (h ecx))); (* call glue_fn, trashing eax. *)

0 commit comments

Comments
 (0)