diff options
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index b0e6d313..1ecbe45e 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -2550,7 +2550,9 @@ void lj_asm_trace(jit_State *J, GCtrace *T) | |||
2550 | /* Set trace entry point before fixing up tail to allow link to self. */ | 2550 | /* Set trace entry point before fixing up tail to allow link to self. */ |
2551 | T->mcode = as->mcp; | 2551 | T->mcode = as->mcp; |
2552 | T->mcloop = as->mcloop ? (MSize)((char *)as->mcloop - (char *)as->mcp) : 0; | 2552 | T->mcloop = as->mcloop ? (MSize)((char *)as->mcloop - (char *)as->mcp) : 0; |
2553 | if (!as->loopref) | 2553 | if (as->loopref) |
2554 | asm_loop_tail_fixup(as); | ||
2555 | else | ||
2554 | asm_tail_fixup(as, T->link); /* Note: this may change as->mctop! */ | 2556 | asm_tail_fixup(as, T->link); /* Note: this may change as->mctop! */ |
2555 | T->szmcode = (MSize)((char *)as->mctop - (char *)as->mcp); | 2557 | T->szmcode = (MSize)((char *)as->mctop - (char *)as->mcp); |
2556 | asm_snap_fixup_mcofs(as); | 2558 | asm_snap_fixup_mcofs(as); |