From b6d277da6c68dca35fdfa24423d4ca3f79587bad Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 21 Nov 2008 01:52:59 +0000 Subject: [PATCH] Fix unused variable warnings. llvm-svn: 59778 --- lib/Transforms/Scalar/SCCP.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 01b192630d3..954bc0011e6 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -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(I)) { assert(BI->isConditional() && isa(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();