[PATCH] D135136: [analyzer] Make directly bounded LazyCompoundVal as lazily copied

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 4 02:27:38 PDT 2022


steakhal created this revision.
steakhal added reviewers: NoQ, martong, xazax.hun.
Herald added subscribers: manas, ASDenysPetrov, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware.
Herald added a reviewer: Szelethus.
Herald added a project: All.
steakhal requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Previously, `LazyCompoundVal` bindings to subregions referred by
`LazyCopoundVals`, were not marked as //lazily copied//.

This change returns `LazyCompoundVals` from `getInterestingValues()`,
so their regions can be marked as //lazily copied// in `RemoveDeadBindingsWorker::VisitBinding()`.

Depends on D134947 <https://reviews.llvm.org/D134947>

Authored by: Tomasz Kamiński <tomasz.kamiński at sonarsource.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135136

Files:
  clang/lib/StaticAnalyzer/Core/RegionStore.cpp
  clang/test/Analysis/trivial-copy-struct.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135136.464928.patch
Type: text/x-patch
Size: 4386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221004/a0e893c4/attachment.bin>


More information about the cfe-commits mailing list