[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker
Alexander Zaitsev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 29 08:18:14 PDT 2018
ZaMaZaN4iK added inline comments.
================
Comment at: lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp:36
+ const ProgramStateRef PS;
+ SValBuilder &SVB;
+
----------------
Szelethus wrote:
> You can acquire `SValBuilder` from `ProgramState`:
> `PS->getStateManager()->getSvalBuilder()`
Is there any difference? Is it critical to get `SValBuilder` from `CheckerContext' ?
https://reviews.llvm.org/D33672
More information about the cfe-commits
mailing list