]> granicus.if.org Git - clang/commitdiff
Silence warning in Release builds. This function is only used in an assert.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 11 May 2014 09:31:47 +0000 (09:31 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 11 May 2014 09:31:47 +0000 (09:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208491 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngine.cpp

index 506b269df64473f4228601700f41b5014e839921..883ce40a62b4971373ce94878ca2d2b06022db6b 100644 (file)
@@ -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'.