Skip to content

Commit cfbfcbc

Browse files
committed
Consolidate initialization of debug flags to one place
1 parent ec904a5 commit cfbfcbc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/Backend/IR.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,9 +1654,6 @@ BranchInstr::New(Js::OpCode opcode, LabelInstr * branchTarget, Func *func)
16541654
branchInstr->m_src1 = nullptr;
16551655
branchInstr->m_src2 = nullptr;
16561656
branchInstr->m_byteCodeReg = Js::Constants::NoRegister;
1657-
#if DBG
1658-
branchInstr->m_isHelperToNonHelperBranch = false;
1659-
#endif
16601657

16611658
return branchInstr;
16621659
}

lib/Backend/IR.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ class BranchInstr : public Instr
871871
{
872872
#if DBG
873873
m_isMultiBranch = false;
874+
m_isHelperToNonHelperBranch = false;
874875
m_leaveConvToBr = false;
875876
#endif
876877
}

0 commit comments

Comments
 (0)