소스 검색

ARM64: Followup fix for exit branch patching.

Mike Pall 5 년 전
부모
커밋
e67e2040be
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/lj_asm_arm64.h

+ 1 - 1
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);
 }