[PATCH] D86027: [analyzer] Add bool operator modeling for unque_ptr
Nithin VR via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 31 10:02:12 PDT 2020
vrnithinkumar marked an inline comment as done.
vrnithinkumar added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp:556
+ const LocationContext *LC = C.getLocationContext();
+ InnerPointerVal = C.getSValBuilder().conjureSymbolVal(
+ CallExpr, LC, InnerPointerType, C.blockCount());
----------------
xazax.hun wrote:
> Don't we want to actually add InnerPointerVal to TrackedRegionMap in this case?
>
> I might be wrong but I cannot find where do we actually record the fact that this freshly conjured symbol belongs to the unique_ptr we are modeling.
Thanks for catching that.
We have to update the `TrackedRegionMap` to track the created conjureSymbolVal `InnerPointerVal`.
Updated to add it to the `TrackedRegionMap`
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