================
@@ -10999,21 +10999,21 @@ def warn_lifetime_safety_invalidated_global
       DefaultIgnore;
 
 def warn_lifetime_safety_dangling_field
-    : Warning<"address of stack memory escapes to a field">,
+    : Warning<"%0 escapes to a field and will dangle">,
----------------
usx95 wrote:

I would prefer to have the wording similar to return stack address. 
"stack memory associated with %0 escapes to a field which will dangle". Also 
note that the field dangles, not the storage this points to.

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