Skip to content

Commit

Permalink
Remove useless _ReuseLoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortDevelopment committed May 3, 2024
1 parent 9904051 commit 31ec493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Runtime/ByteCode/ByteCodeEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static void EmitOptionalChainWrapper(ParseNodeUni *pnodeOptChain, ByteCodeGenera
// Acquire slot for the result value
Js::RegSlot resultSlot = funcInfo->AcquireLoc(pnodeOptChain);
// Copy chain result
byteCodeGenerator->Writer()->Reg2(Js::OpCode::Ld_A_ReuseLoc, resultSlot, innerNode->location);
byteCodeGenerator->Writer()->Reg2(Js::OpCode::Ld_A, resultSlot, innerNode->location);

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

0 comments on commit 31ec493

Please sign in to comment.