summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-05-11 09:31:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-05-11 09:31:47 +0000
commit4f5abb3487f08a46e41c7d1d11805e184854736e (patch)
tree7213bb1b41ce39cd40b9a1a4d39f2b0e2e278699
parent18512f3e519046e7b500f1a0fc070e0f50fb7e42 (diff)
downloadclang-4f5abb3487f08a46e41c7d1d11805e184854736e.tar.gz
clang-4f5abb3487f08a46e41c7d1d11805e184854736e.tar.bz2
clang-4f5abb3487f08a46e41c7d1d11805e184854736e.tar.xz
Silence warning in Release builds. This function is only used in an assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208491 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 506b269df6..883ce40a62 100644
--- a/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -1352,6 +1352,7 @@ static SVal RecoverCastedSymbol(ProgramStateManager& StateMgr,
return state->getSVal(Ex, LCtx);
}
+#ifndef NDEBUG
static const Stmt *getRightmostLeaf(const Stmt *Condition) {
while (Condition) {
const BinaryOperator *BO = dyn_cast<BinaryOperator>(Condition);
@@ -1362,6 +1363,7 @@ static const Stmt *getRightmostLeaf(const Stmt *Condition) {
}
return nullptr;
}
+#endif
// Returns the condition the branch at the end of 'B' depends on and whose value
// has been evaluated within 'B'.