Prevent unused-variable warning in optimized builds.

llvm-svn: 160257
This commit is contained in:
Daniel Jasper 2012-07-16 10:25:15 +00:00
parent 8b540ab337
commit 6b5a4fcc07
1 changed files with 1 additions and 0 deletions

View 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?