[llvm-branch-commits] [clang] [analyzer] Only bind aggregate lifetime sources in LifetimeModeling for annotated functions (PR #214824)
Balázs Benics via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Aug 9 15:46:08 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);
----------------
steakhal wrote:
Btw takePtr should take something by ptr, isnt it?
https://github.com/llvm/llvm-project/pull/214824
More information about the llvm-branch-commits
mailing list