[PATCH] D86465: [analyzer][solver] Redesign constraint ranges data structure
Valeriy Savchenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 19 05:24:36 PST 2021
vsavchenko added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:433-434
+ if (To == MAX) {
+ Result.insert(Result.end(), What.begin(), What.end());
+ return makePersistent(std::move(Result));
+ }
----------------
ASDenysPetrov wrote:
> Here you can just move `What`. And after that you can do `Result.reserve`.
`What` is a persistent range set, so moving it or making it persistent won't do, but we indeed can simply return `What`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86465/new/
https://reviews.llvm.org/D86465
More information about the cfe-commits
mailing list