Skip to content
Browse files

[MERGE #6357 @pleath] [OSG 24291889] Protect against bad call to AsBr…


Merge pull request #6357 from pleath:24291889

Fixes regression from class definition change
  • Loading branch information
pleath committed Dec 20, 2019
2 parents 194c97f + d26afd4 commit c423d312d87871d01bf99a39f86a9e79d1c7a75a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Backend/BackwardPass.cpp
@@ -8432,7 +8432,7 @@ BackwardPass::ProcessBailOnNoProfile(IR::Instr *instr, BasicBlock *block)
// We already have one, we don't need a second.
else if (!predInstr->AsBranchInstr()->m_isSwitchBr)
else if (predInstr->IsBranchInstr() && !predInstr->AsBranchInstr()->m_isSwitchBr)
// Don't put a bailout in the middle of a switch dispatch sequence.
// The bytecode offsets are not in order, and it would lead to incorrect

0 comments on commit c423d31

Please sign in to comment.
You can’t perform that action at this time.