File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,9 @@ FlowGraph::Build(void)
317
317
318
318
Assert (leaveTarget->labelRefs .HasOne ());
319
319
IR::BranchInstr * brOnException = IR::BranchInstr::New (Js::OpCode::BrOnException, finallyLabel, instr->m_func );
320
- leaveTarget->labelRefs .Head ()->InsertBefore (brOnException);
320
+ IR::BranchInstr * leaveInstr = leaveTarget->labelRefs .Head ();
321
+ brOnException->SetByteCodeOffset (leaveInstr);
322
+ leaveInstr->InsertBefore (brOnException);
321
323
322
324
instrPrev = instr->m_prev ;
323
325
}
Original file line number Diff line number Diff line change @@ -2715,7 +2715,10 @@ Instr::GetNextByteCodeInstr() const
2715
2715
{
2716
2716
IR::BranchInstr* branchInstr = nextInstr->AsBranchInstr ();
2717
2717
AssertMsg (branchInstr->IsUnconditional (), " We can't know which branch to take on a conditionnal branch" );
2718
- return branchInstr->GetTarget ();
2718
+ if (branchInstr->IsUnconditional ())
2719
+ {
2720
+ return branchInstr->GetTarget ();
2721
+ }
2719
2722
}
2720
2723
return nextInstr->GetNextRealInstrOrLabel ();
2721
2724
};
You can’t perform that action at this time.
0 commit comments