[llvm-commits] [llvm] r59778 - /llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Devang Patel dpatel at apple.com
Thu Nov 20 17:52:59 PST 2008


Author: dpatel
Date: Thu Nov 20 19:52:59 2008
New Revision: 59778

URL: http://llvm.org/viewvc/llvm-project?rev=59778&view=rev
Log:
Fix unused variable warnings.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=59778&r1=59777&r2=59778&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Thu Nov 20 19:52:59 2008
@@ -1788,6 +1788,7 @@
           // 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 @@
           } 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();





More information about the llvm-commits mailing list