aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index c51cc89d..4070ccb3 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -1348,7 +1348,7 @@ static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
1348 } 1348 }
1349#endif 1349#endif
1350 if (r) { /* Argument is in a register. */ 1350 if (r) { /* Argument is in a register. */
1351 if (args[n] < ASMREF_TMP1) { 1351 if (r < RID_MAX_GPR && args[n] < ASMREF_TMP1) {
1352 emit_loadi(as, r, ir->i); 1352 emit_loadi(as, r, ir->i);
1353 } else { 1353 } else {
1354 lua_assert(rset_test(as->freeset, r)); /* Must have been evicted. */ 1354 lua_assert(rset_test(as->freeset, r)); /* Must have been evicted. */