r208491 - Silence warning in Release builds. This function is only used in an assert.
Benjamin Kramer
benny.kra at googlemail.com
Sun May 11 02:31:48 PDT 2014
Author: d0k
Date: Sun May 11 04:31:47 2014
New Revision: 208491
URL: http://llvm.org/viewvc/llvm-project?rev=208491&view=rev
Log:
Silence warning in Release builds. This function is only used in an assert.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp?rev=208491&r1=208490&r2=208491&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp Sun May 11 04:31:47 2014
@@ -1352,6 +1352,7 @@ static SVal RecoverCastedSymbol(ProgramS
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(cons
}
return nullptr;
}
+#endif
// Returns the condition the branch at the end of 'B' depends on and whose value
// has been evaluated within 'B'.
More information about the cfe-commits
mailing list