From: Daniel Dunbar Date: Sat, 17 Oct 2009 23:15:04 +0000 (+0000) Subject: Fix my -Asserts warning fix. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c499e32b371faf02cbd17e03bad2a42b93ade82a;p=oota-llvm.git Fix my -Asserts warning fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84372 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodePlacementOpt.cpp b/lib/CodeGen/CodePlacementOpt.cpp index 85cbc78b514..b5a7123539a 100644 --- a/lib/CodeGen/CodePlacementOpt.cpp +++ b/lib/CodeGen/CodePlacementOpt.cpp @@ -153,8 +153,9 @@ void CodePlacementOpt::UpdateTerminator(MachineBasicBlock *MBB) { MachineBasicBlock *TBB = 0, *FBB = 0; SmallVector 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