forked from OSchip/llvm-project
parent
4729191bb2
commit
47dfc9ae1b
|
@ -153,8 +153,8 @@ void CodePlacementOpt::UpdateTerminator(MachineBasicBlock *MBB) {
|
|||
|
||||
MachineBasicBlock *TBB = 0, *FBB = 0;
|
||||
SmallVector<MachineOperand, 4> Cond;
|
||||
bool B = TII->AnalyzeBranch(*MBB, TBB, FBB, Cond);
|
||||
assert(!B && "UpdateTerminators requires analyzable predecessors!");
|
||||
assert(!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond) &&
|
||||
"UpdateTerminators requires analyzable predecessors!");
|
||||
if (Cond.empty()) {
|
||||
if (TBB) {
|
||||
// The block has an unconditional branch. If its successor is now
|
||||
|
|
Loading…
Reference in New Issue