[PATCH] D94386: [LangRef] State that a nocapture pointer cannot be returned

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 16:31:25 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG76643c48cddd: [LangRef] State that a nocapture pointer cannot be returned (authored by aqjune).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94386/new/

https://reviews.llvm.org/D94386

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -1193,7 +1193,8 @@
 
 ``nocapture``
     This indicates that the callee does not make any copies of the
-    pointer that outlive the callee itself. This is not a valid
+    pointer that outlive the callee itself in any form such as a pointer stored
+    in the memory or as a return value. This is not a valid
     attribute for return values.  Addresses used in volatile operations
     are considered to be captured.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94386.316270.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210113/f18092c9/attachment.bin>


More information about the llvm-commits mailing list