summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SCCP.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-11-21 01:52:59 +0000
committerDevang Patel <dpatel@apple.com>2008-11-21 01:52:59 +0000
commit45f1ae028e126314db9291280a7a750ae23f7518 (patch)
treef57c30a2e1c30c12ebc58d8b55b2e4d48ce24940 /llvm/lib/Transforms/Scalar/SCCP.cpp
parentd1f33e23971a7973dc33105d42d7a9a69c950e19 (diff)
downloadbcm5719-llvm-45f1ae028e126314db9291280a7a750ae23f7518.tar.gz
bcm5719-llvm-45f1ae028e126314db9291280a7a750ae23f7518.zip
Fix unused variable warnings.
llvm-svn: 59778
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index 01b192630d3..954bc0011e6 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/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<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();
OpenPOWER on IntegriCloud