mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 17:18:55 +00:00
Fix my -Asserts warning fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
59c4eba416
commit
c499e32b37
@ -153,8 +153,9 @@ void CodePlacementOpt::UpdateTerminator(MachineBasicBlock *MBB) {
|
|||||||
|
|
||||||
MachineBasicBlock *TBB = 0, *FBB = 0;
|
MachineBasicBlock *TBB = 0, *FBB = 0;
|
||||||
SmallVector<MachineOperand, 4> Cond;
|
SmallVector<MachineOperand, 4> Cond;
|
||||||
assert(!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond) &&
|
bool B = TII->AnalyzeBranch(*MBB, TBB, FBB, Cond);
|
||||||
"UpdateTerminators requires analyzable predecessors!");
|
(void) B;
|
||||||
|
assert(!B && "UpdateTerminators requires analyzable predecessors!");
|
||||||
if (Cond.empty()) {
|
if (Cond.empty()) {
|
||||||
if (TBB) {
|
if (TBB) {
|
||||||
// The block has an unconditional branch. If its successor is now
|
// The block has an unconditional branch. If its successor is now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user