diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_asm_ppc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_ppc.h b/src/lj_asm_ppc.h index 815d9058..6fc8dfb7 100644 --- a/src/lj_asm_ppc.h +++ b/src/lj_asm_ppc.h | |||
@@ -361,7 +361,7 @@ static void asm_retf(ASMState *as, IRIns *ir) | |||
361 | { | 361 | { |
362 | Reg base = ra_alloc1(as, REF_BASE, RSET_GPR); | 362 | Reg base = ra_alloc1(as, REF_BASE, RSET_GPR); |
363 | void *pc = ir_kptr(IR(ir->op2)); | 363 | void *pc = ir_kptr(IR(ir->op2)); |
364 | int32_t delta = 1+bc_a(*((const BCIns *)pc - 1)); | 364 | int32_t delta = 1+LJ_FR2+bc_a(*((const BCIns *)pc - 1)); |
365 | as->topslot -= (BCReg)delta; | 365 | as->topslot -= (BCReg)delta; |
366 | if ((int32_t)as->topslot < 0) as->topslot = 0; | 366 | if ((int32_t)as->topslot < 0) as->topslot = 0; |
367 | irt_setmark(IR(REF_BASE)->t); /* Children must not coalesce with BASE reg. */ | 367 | irt_setmark(IR(REF_BASE)->t); /* Children must not coalesce with BASE reg. */ |