[llvm-branch-commits] [clang] [analyzer] Replace getAdjustedParameterIndex with getDeclaredParameterIndex in CallEvent.cpp (PR #221727)

Benedek Kaibas via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 10 03:29:02 PDT 2026


================
@@ -285,10 +285,11 @@ ProgramStateRef CallEvent::invalidateRegions(unsigned BlockCount,
     // TODO: This is unnecessary when there's no destructor, but that's
     // currently hard to figure out.
     if (getKind() != CE_CXXAllocator)
-      if (isArgumentConstructedDirectly(Idx))
-        if (auto AdjIdx = getAdjustedParameterIndex(Idx))
+      if (isArgumentConstructedDirectly(getASTArgumentIndex(Idx)))
+        if (std::optional<unsigned> DeclParamIdx =
+                getDeclaredParameterIndex(Idx))
           if (const TypedValueRegion *TVR =
-                  getParameterLocation(*AdjIdx, BlockCount))
----------------
benedekaibas wrote:

Applied changes here: [8f03efe](https://github.com/llvm/llvm-project/pull/221727/commits/8f03efed3877aea0c5a778d0ffa41d81c74971c1)

https://github.com/llvm/llvm-project/pull/221727


More information about the llvm-branch-commits mailing list