[PATCH] D105821: [analyzer] [WIP] Model destructor for std::unique_ptr
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 4 11:37:12 PDT 2021
NoQ added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp:298
+ }
+ return {State, true};
+}
----------------
Something's not right. Returning `true` here would discard the state and terminate `evalCall` as failed. Why compute the invalidated state if we throw it away?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105821/new/
https://reviews.llvm.org/D105821
More information about the cfe-commits
mailing list