================
@@ -86,13 +86,13 @@ struct DanglingGslPtrField {
   MyLongPointerFromConversion p2; // expected-note {{pointer member declared 
here}} \
                                   // cfg-note 2 {{this field dangles}}
 
-  DanglingGslPtrField(int i) : p(&i) {} // cfg-warning {{address of stack 
memory escapes to a field}}
+  DanglingGslPtrField(int i) : p(&i) {} // cfg-warning {{stack memory 
associated with parameter 'i' escapes to a field 'p' which will dangle}}
----------------
usx95 wrote:

sorry for the back-n-forth. Since we now know the field, this should be 
`escapes to the field 'p' `

https://github.com/llvm/llvm-project/pull/200147
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to