Skip to content

Commit 1676cd9

Browse files
author
Meghana Gupta
committed
[MERGE chakra-core#1981 @meg-gupta] IRBuilder sets all 2 reg branches as switch branches, fix this
Merge pull request chakra-core#1981 from meg-gupta:breakbug IRBuilder is setting the flag m_isSwitchBr for all 2 register branch instructions. Fixing this.
2 parents bbf4624 + cd20c19 commit 1676cd9

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)