From e67e2040be693122b54fc83797cdc9eb07221aea Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 28 Sep 2020 18:17:58 +0200 Subject: [PATCH] ARM64: Followup fix for exit branch patching. --- src/lj_asm_arm64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h index 37b79cde..e80e1b41 100644 --- a/src/lj_asm_arm64.h +++ b/src/lj_asm_arm64.h @@ -2021,7 +2021,7 @@ void lj_asm_patchexit(jit_State *J, GCtrace *T, ExitNo exitno, MCode *target) *px = A64I_B | A64F_S26(delta); if (!cstart) cstart = px; } - lj_mcode_sync(cstart, px+1); + if (cstart) lj_mcode_sync(cstart, px+1); lj_mcode_patch(J, mcarea, 1); }