Add guard for obscure aliasing between open upvalues and SSA slots.

Thanks to Peter Cawley.
This commit is contained in:
Mike Pall
2016-05-20 20:24:06 +02:00
parent 5837c2a2fb
commit 37e1e70313
6 changed files with 8 additions and 12 deletions

View File

@@ -976,7 +976,6 @@ static void asm_newref(ASMState *as, IRIns *ir)
static void asm_uref(ASMState *as, IRIns *ir)
{
/* NYI: Check that UREFO is still open and not aliasing a slot. */
Reg dest = ra_dest(as, ir, RSET_GPR);
if (irref_isk(ir->op1)) {
GCfunc *fn = ir_kfunc(IR(ir->op1));