forked from OSchip/llvm-project
Prevent unused-variable warning in optimized builds.
llvm-svn: 160257
This commit is contained in:
parent
8b540ab337
commit
6b5a4fcc07
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue