From 54279632f399082eff09e49c73d52b65a3836a06 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 17 Oct 2009 23:15:04 +0000 Subject: [PATCH] Fix my -Asserts warning fix. llvm-svn: 84372 --- llvm/lib/CodeGen/CodePlacementOpt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/CodePlacementOpt.cpp b/llvm/lib/CodeGen/CodePlacementOpt.cpp index 85cbc78b5148..b5a7123539a1 100644 --- a/llvm/lib/CodeGen/CodePlacementOpt.cpp +++ b/llvm/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