Skip to content

Commit 31ec493

Browse files
Remove useless _ReuseLoc
1 parent 9904051 commit 31ec493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Runtime/ByteCode/ByteCodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static void EmitOptionalChainWrapper(ParseNodeUni *pnodeOptChain, ByteCodeGenera
7070
// Acquire slot for the result value
7171
Js::RegSlot resultSlot = funcInfo->AcquireLoc(pnodeOptChain);
7272
// Copy chain result
73-
byteCodeGenerator->Writer()->Reg2(Js::OpCode::Ld_A_ReuseLoc, resultSlot, innerNode->location);
73+
byteCodeGenerator->Writer()->Reg2(Js::OpCode::Ld_A, resultSlot, innerNode->location);
7474

7575
// Skip short-circuiting logic
7676
Js::ByteCodeLabel doneLabel = byteCodeGenerator->Writer()->DefineLabel();

0 commit comments

Comments
 (0)