[llvm-commits] [llvm] r84372 - /llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp
Daniel Dunbar
daniel at zuster.org
Sat Oct 17 16:15:04 PDT 2009
Author: ddunbar
Date: Sat Oct 17 18:15:04 2009
New Revision: 84372
URL: http://llvm.org/viewvc/llvm-project?rev=84372&view=rev
Log:
Fix my -Asserts warning fix.
Modified:
llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp
Modified: llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp?rev=84372&r1=84371&r2=84372&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodePlacementOpt.cpp Sat Oct 17 18:15:04 2009
@@ -153,8 +153,9 @@
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
More information about the llvm-commits
mailing list