[PATCH] D39577: [analyzer] [NFC] very minor ExprEngineC refactoring

George Karpenkov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 17:42:11 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL317294: [analyzer] [NFC] very minor ExprEngineC refactoring (authored by george.karpenkov).

Changed prior to commit:
  https://reviews.llvm.org/D39577?vs=121401&id=121424#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39577

Files:
  cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp


Index: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
===================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
@@ -92,12 +92,10 @@
       // 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;
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39577.121424.patch
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171103/32d157e7/attachment.bin>


More information about the cfe-commits mailing list