diff options
author | Mike Pall <mike> | 2016-05-20 20:24:06 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-05-20 20:24:06 +0200 |
commit | 37e1e70313367d0264be9a2b9e563a8a94745303 (patch) | |
tree | d923eb98312da45aefac76176eddf49e7955b3a6 /src/lj_asm_x86.h | |
parent | 5837c2a2fb1ba66510c9100a296966020f1610a3 (diff) | |
download | luajit-37e1e70313367d0264be9a2b9e563a8a94745303.tar.gz luajit-37e1e70313367d0264be9a2b9e563a8a94745303.tar.bz2 luajit-37e1e70313367d0264be9a2b9e563a8a94745303.zip |
Add guard for obscure aliasing between open upvalues and SSA slots.
Thanks to Peter Cawley.
Diffstat (limited to 'src/lj_asm_x86.h')
-rw-r--r-- | src/lj_asm_x86.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 02918e23..db3e49f8 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h | |||
@@ -1215,7 +1215,6 @@ static void asm_newref(ASMState *as, IRIns *ir) | |||
1215 | 1215 | ||
1216 | static void asm_uref(ASMState *as, IRIns *ir) | 1216 | static void asm_uref(ASMState *as, IRIns *ir) |
1217 | { | 1217 | { |
1218 | /* NYI: Check that UREFO is still open and not aliasing a slot. */ | ||
1219 | Reg dest = ra_dest(as, ir, RSET_GPR); | 1218 | Reg dest = ra_dest(as, ir, RSET_GPR); |
1220 | if (irref_isk(ir->op1)) { | 1219 | if (irref_isk(ir->op1)) { |
1221 | GCfunc *fn = ir_kfunc(IR(ir->op1)); | 1220 | GCfunc *fn = ir_kfunc(IR(ir->op1)); |