Skip to content

Commit e810fdd

Browse files
committed
Give a bytecode offset to Ld_A added by CSE
1 parent 2654a02 commit e810fdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Backend/GlobOptExpr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ GlobOpt::CSEOptimize(BasicBlock *block, IR::Instr * *const instrRef, Value **pSr
798798
// code and due to other similar potential issues, always create a new instr instead of changing the existing one.
799799
IR::Instr *const originalInstr = instr;
800800
instr = IR::Instr::New(Js::OpCode::Ld_A, instr->GetDst(), cseOpnd, instr->m_func);
801+
instr->SetByteCodeOffset(originalInstr);
801802
originalInstr->TransferDstAttributesTo(instr);
802803
block->InsertInstrBefore(instr, originalInstr);
803804
block->RemoveInstr(originalInstr);

0 commit comments

Comments
 (0)