[cfe-commits] r160257 - /cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
Daniel Jasper
djasper at google.com
Mon Jul 16 03:25:15 PDT 2012
Author: djasper
Date: Mon Jul 16 05:25:15 2012
New Revision: 160257
URL: http://llvm.org/viewvc/llvm-project?rev=160257&view=rev
Log:
Prevent unused-variable warning in optimized builds.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp?rev=160257&r1=160256&r2=160257&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp Mon Jul 16 05:25:15 2012
@@ -520,6 +520,7 @@
// 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?
More information about the cfe-commits
mailing list