From 4ef96cff887c268cc676f9b4b1dc9c54a693efd5 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 20 May 2022 12:16:25 +0200 Subject: [PATCH] Fix alias analysis for table length forwarding. Contributed by Maxim Sokolov. --- src/lj_opt_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_opt_mem.c b/src/lj_opt_mem.c index cafa0523..09de2f05 100644 --- a/src/lj_opt_mem.c +++ b/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;