diff options
Diffstat (limited to 'src/lj_opt_loop.c')
-rw-r--r-- | src/lj_opt_loop.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lj_opt_loop.c b/src/lj_opt_loop.c index 3a119f47..9637263c 100644 --- a/src/lj_opt_loop.c +++ b/src/lj_opt_loop.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #if LJ_HASJIT | 11 | #if LJ_HASJIT |
12 | 12 | ||
13 | #include "lj_err.h" | 13 | #include "lj_err.h" |
14 | #include "lj_str.h" | 14 | #include "lj_buf.h" |
15 | #include "lj_ir.h" | 15 | #include "lj_ir.h" |
16 | #include "lj_jit.h" | 16 | #include "lj_jit.h" |
17 | #include "lj_iropt.h" | 17 | #include "lj_iropt.h" |
@@ -271,8 +271,7 @@ static void loop_unroll(jit_State *J) | |||
271 | ** Caveat: don't call into the VM or run the GC or the buffer may be gone. | 271 | ** Caveat: don't call into the VM or run the GC or the buffer may be gone. |
272 | */ | 272 | */ |
273 | invar = J->cur.nins; | 273 | invar = J->cur.nins; |
274 | subst = (IRRef1 *)lj_str_needbuf(J->L, &G(J->L)->tmpbuf, | 274 | subst = (IRRef1 *)lj_buf_tmp(J->L, (invar-REF_BIAS)*sizeof(IRRef1))-REF_BIAS; |
275 | (invar-REF_BIAS)*sizeof(IRRef1)) - REF_BIAS; | ||
276 | subst[REF_BASE] = REF_BASE; | 275 | subst[REF_BASE] = REF_BASE; |
277 | 276 | ||
278 | /* LOOP separates the pre-roll from the loop body. */ | 277 | /* LOOP separates the pre-roll from the loop body. */ |