]> granicus.if.org Git - clang/commitdiff
Prevent unused-variable warning in optimized builds.
authorDaniel Jasper <djasper@google.com>
Mon, 16 Jul 2012 10:25:15 +0000 (10:25 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 16 Jul 2012 10:25:15 +0000 (10:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160257 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngineC.cpp

index c25e441a7a605cd1bc01c5e7ee5461e2e0f9a717..fe9adb1e1549f8fc68954acdf9b237de1e70322f 100644 (file)
@@ -520,6 +520,7 @@ void ExprEngine::VisitLogicalExpr(const BinaryOperator* B, ExplodedNode *Pred,
   // The only terminator (if there is one) that makes sense is a logical op.
   CFGTerminator T = SrcBlock->getTerminator();
   if (const BinaryOperator *Term = cast_or_null<BinaryOperator>(T.getStmt())) {
+    (void) Term;
     assert(Term->isLogicalOp());
     assert(SrcBlock->succ_size() == 2);
     // Did we take the true or false branch?