浏览代码

Fix alias analysis for table length forwarding.

Contributed by Maxim Sokolov.
Mike Pall 3 年之前
父节点
当前提交
4ef96cff88
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_opt_mem.c

+ 1 - 1
src/lj_opt_mem.c

@@ -432,7 +432,7 @@ TRef LJ_FASTCALL lj_opt_fwd_alen(jit_State *J)
 	    fins->op2 = aref->op2;  /* Set ALEN hint. */
 	  }
 	  goto doemit;  /* Conflicting store, possibly giving a hint. */
-	} else if (aa_table(J, tab, fref->op1) == ALIAS_NO) {
+	} else if (aa_table(J, tab, fref->op1) != ALIAS_NO) {
 	  goto doemit;  /* Conflicting store. */
 	}
 	sref = store->prev;