[clang] [analyzer] Suppress out of bounds reports after weak loop assumptions (PR #109804)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 30 01:53:24 PDT 2024
================
@@ -2808,27 +2825,63 @@ void ExprEngine::processBranch(const Stmt *Condition,
std::tie(StTrue, StFalse) = *KnownCondValueAssumption;
else {
assert(!isa<ObjCForCollectionStmt>(Condition));
+ // TODO: instead of this shortcut perhaps it would be better to "rejoin"
+ // the common execution path with
+ // StTrue = StFalse = PrevState;
----------------
NagyDonat wrote:
You're right that this comment is confusing, I'll probably eliminate it by implementing the (relatively modest) change that I described -- or at least tried to describe ;) -- in it.
https://github.com/llvm/llvm-project/pull/109804
More information about the cfe-commits
mailing list