Skip to content

Commit cd20c19

Browse files
author
Meghana Gupta
committed
IRBuilder sets all 2 reg branches as switch branches, fix this
IRBuilder is setting the flag m_isSwitchBr for all 2 register branch instructions. Fixing this.
1 parent bbf4624 commit cd20c19

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/Backend/IRBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6676,7 +6676,6 @@ IRBuilder::BuildBrReg2(Js::OpCode newOpcode, uint32 offset, uint targetOffset, J
66766676
else
66776677
{
66786678
branchInstr = IR::BranchInstr::New(newOpcode, nullptr, src1Opnd, src2Opnd, m_func);
6679-
branchInstr->m_isSwitchBr = true;
66806679
this->AddBranchInstr(branchInstr, offset, targetOffset);
66816680
}
66826681
}

0 commit comments

Comments
 (0)