[PATCH] D86027: [analyzer] Add bool operator modeling for unque_ptr

Nithin VR via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 15 16:15:50 PDT 2020


vrnithinkumar added inline comments.


================
Comment at: clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp:411
+      if (NotNullState) {
+        auto NonNullVal = C.getSValBuilder().makeTruthVal(true);
+        NotNullState =
----------------
Since the inner pointer value can be any non-null value, I am not sure what should be the value to be added to the map for tracking.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86027/new/

https://reviews.llvm.org/D86027



More information about the cfe-commits mailing list