[llvm-branch-commits] [clang] [analyzer] Only bind aggregate lifetime sources in LifetimeModeling for annotated functions (PR #214824)

Benedek Kaibas via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 10 02:26:03 PDT 2026


================
@@ -471,3 +471,29 @@ IntPtrArr return_array_field_not_yet_detected() {
   // expected-note at -2    {{Address of stack memory associated with local variable 'z' returned to caller}}
   // expected-warning at -3 {{address of stack memory associated with local variable 'z' returned}}
 }
+
+struct Hold {
+  int *ptr;
+};
+
+Hold takePtr(int &x);
----------------
benedekaibas wrote:

Applied changes here: [354bafa](https://github.com/llvm/llvm-project/pull/214824/commits/354bafac513c6e335cbc8bceab783699972e052f)

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


More information about the llvm-branch-commits mailing list