================
@@ -76,6 +76,7 @@ struct Y {
 
 void dangligGslPtrFromTemporary() {
   MyIntPointer p = Y{}.a; // cfg-warning {{local temporary object does not 
live long enough}} \
+                          // cfg-note {{expression aliases the storage of 
local temporary object}} \
----------------
Xazax-hun wrote:

I wonder if these messages give us any value when they are on the same line 
where the temporary was created. Should we also skip the first message? (And 
not just the last?)

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

Reply via email to