From c909383229a95212e717cd3add69c3d129525acf Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Wed, 13 Nov 2024 15:51:17 +0100 Subject: [PATCH] restore unnecessary changes --- lib/VM/JIT/arm64/JitHandlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VM/JIT/arm64/JitHandlers.cpp b/lib/VM/JIT/arm64/JitHandlers.cpp index 8584b529947..c3e7d98f2c1 100644 --- a/lib/VM/JIT/arm64/JitHandlers.cpp +++ b/lib/VM/JIT/arm64/JitHandlers.cpp @@ -275,7 +275,7 @@ SHLegacyValue _jit_dispatch_call(SHRuntime *shr, SHLegacyValue *frame) { newFrame.getSavedCodeBlockRef() = HermesValue::encodeNativePointer(nullptr); newFrame.getSHLocalsRef() = HermesValue::encodeNativePointer(nullptr); - auto callTarget = newFrame.getCalleeClosureHandleUnsafe(); + auto *callTarget = &newFrame.getCalleeClosureOrCBRef(); if (vmisa(*callTarget)) { JSFunction *jsFunc = vmcast(*callTarget); if (auto *fnPtr = jsFunc->getCodeBlock()->getJITCompiled())