1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Fix my -Asserts warning fix.

llvm-svn: 84372
This commit is contained in:
Daniel Dunbar 2009-10-17 23:15:04 +00:00
parent 2c890dc2b4
commit 54427e4a2d

View File

@ -153,8 +153,9 @@ void CodePlacementOpt::UpdateTerminator(MachineBasicBlock *MBB) {
MachineBasicBlock *TBB = 0, *FBB = 0;
SmallVector<MachineOperand, 4> Cond;
assert(!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond) &&
"UpdateTerminators requires analyzable predecessors!");
bool B = TII->AnalyzeBranch(*MBB, TBB, FBB, Cond);
(void) B;
assert(!B && "UpdateTerminators requires analyzable predecessors!");
if (Cond.empty()) {
if (TBB) {
// The block has an unconditional branch. If its successor is now