summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commitb7ee689f91b10172690a511a7d5ac6fd35b2a96a (patch)
tree3f2cb701f05cf246a70f160331ab5cf5b7c24f11 /clang/lib
parent20b043b24cc079ac30514ac6df6d4d904927e8df (diff)
downloadbcm5719-llvm-b7ee689f91b10172690a511a7d5ac6fd35b2a96a.tar.gz
bcm5719-llvm-b7ee689f91b10172690a511a7d5ac6fd35b2a96a.zip
Silence warning in Release builds. This function is only used in an assert.
llvm-svn: 208491
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 506b269df64..883ce40a62b 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/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'.
OpenPOWER on IntegriCloud