================
@@ -1842,11 +1842,15 @@ Currently, only the following parameter attributes are 
defined:
 
     This attribute cannot be applied to return values.
 
-``dead_on_return``
+``dead_on_return`` or ``dead_on_return(<n>)``
     This attribute indicates that the memory pointed to by the argument is dead
     upon function return, both upon normal return and if the calls unwinds, 
meaning
     that the caller will not depend on its contents. Stores that would be 
observable
-    either on the return path or on the unwind path may be elided.
+    either on the return path or on the unwind path may be elided. A number of
+    bytes known to be dead may optionally be provided in parentheses. It is 
legal
+    for the number of bytes to be less than the size of the pointee type. If a 
number
----------------
boomanaiden154 wrote:

Removed this line given opaque pointers. I borrowed this wording from 
`dereferencable` which looks like it has not changed since `dereferenceable` 
was introduced ~10 years ago. I'll open a PR to update the wording there too.

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

Reply via email to