[PATCH] D54013: [analyzer] NFC: MallocChecker: Avoid redundant transitions.

Umann Kristóf via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 22 09:00:18 PST 2018


Szelethus added inline comments.


================
Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:2383-2384
 
+  if (RS == OldRS)
+    return;
+
----------------
Hmmm, I guess we return here because if `RegionState` is unchanged, so should be `ReallocPairs` and `FreeReturnValue`, correct?


https://reviews.llvm.org/D54013





More information about the cfe-commits mailing list