Fix unused variable warnings.
authorDevang Patel <dpatel@apple.com>
Fri, 21 Nov 2008 01:52:59 +0000 (01:52 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 21 Nov 2008 01:52:59 +0000 (01:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59778 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index 01b192630d3c0a52b5fad9d544e56a49181563f5..954bc0011e6f42937cfe081a5a96e35445a15331 100644 (file)
@@ -1788,6 +1788,7 @@ bool IPSCCP::runOnModule(Module &M) {
           // The constant folder may not have been able to fold the terminator
           // if this is a branch or switch on undef.  Fold it manually as a
           // branch to the first successor.
+#ifndef NDEBUG
           if (BranchInst *BI = dyn_cast<BranchInst>(I)) {
             assert(BI->isConditional() && isa<UndefValue>(BI->getCondition()) &&
                    "Branch should be foldable!");
@@ -1796,6 +1797,7 @@ bool IPSCCP::runOnModule(Module &M) {
           } else {
             assert(0 && "Didn't fold away reference to block!");
           }
+#endif
           
           // Make this an uncond branch to the first successor.
           TerminatorInst *TI = I->getParent()->getTerminator();