Skip to content

Commit

Permalink
[analyzer] [NFC] very minor ExprEngineC refactoring
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D39577

llvm-svn: 317294
  • Loading branch information
George Karpenkov committed Nov 3, 2017
1 parent 0354483 commit 85a34aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
Expand Up @@ -92,12 +92,10 @@ void ExprEngine::VisitBinaryOperator(const BinaryOperator* B,
// Process non-assignments except commas or short-circuited
// logical expressions (LAnd and LOr).
SVal Result = evalBinOp(state, Op, LeftV, RightV, B->getType());
if (Result.isUnknown()) {
Bldr.generateNode(B, *it, state);
continue;
if (!Result.isUnknown()) {
state = state->BindExpr(B, LCtx, Result);
}

state = state->BindExpr(B, LCtx, Result);
Bldr.generateNode(B, *it, state);
continue;
}
Expand Down

0 comments on commit 85a34aa

Please sign in to comment.