aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
committerDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
commita41634e307caa823b1e050eb8b4f67fdf4b8e415 (patch)
tree0172f17f10f9238b605692f703516f3d271ff563 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent50aa2d480ced9bb792d438f6ff92fe06afa6b84e (diff)
downloadllvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.zip
llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.tar.gz
llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.tar.bz2
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled. llvm-svn: 137460
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopSimplify.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
index 9b16c7c..6a99769 100644
--- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -743,6 +743,7 @@ void LoopSimplify::verifyAnalysis() const {
}
assert(HasIndBrPred &&
"LoopSimplify has no excuse for missing loop header info!");
+ (void)HasIndBrPred;
}
// Indirectbr can interfere with exit block canonicalization.
@@ -757,5 +758,6 @@ void LoopSimplify::verifyAnalysis() const {
}
assert(HasIndBrExiting &&
"LoopSimplify has no excuse for missing exit block info!");
+ (void)HasIndBrExiting;
}
}