================
@@ -603,7 +603,7 @@ void uaf_via_inferred_lifetimebound() {
{
int local;
f = return_lambda_capturing_param(local); // expected-warning {{local
variable 'local' does not live long enough}} \
- // expected-note {{result of
call to 'return_lambda_capturing_param' aliases the storage of local variable
'local' because parameter 'x' is lifetimebound}}
+ // expected-note {{result of
call to 'return_lambda_capturing_param' aliases the storage of local variable
'local' because parameter 'x' is marked as lifetimebound}}
----------------
usx95 wrote:
`return_lambda_capturing_param`, on the contrary, is not marked lifetimebound.
It has an inferred annotation present. We should check for implicit annotation
attr to retrieve this information.
https://github.com/llvm/llvm-project/pull/220248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits