Author: Juneyoung Lee Date: 2021-01-13T09:30:54+09:00 New Revision: 76643c48cdddfa220680f1ab4a83829bd83faa7a
URL: https://github.com/llvm/llvm-project/commit/76643c48cdddfa220680f1ab4a83829bd83faa7a DIFF: https://github.com/llvm/llvm-project/commit/76643c48cdddfa220680f1ab4a83829bd83faa7a.diff LOG: [LangRef] State that a nocapture pointer cannot be returned This is a small patch stating that a nocapture pointer cannot be returned. Discussed in D93189. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D94386 Added: Modified: llvm/docs/LangRef.rst Removed: ################################################################################ diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index ab5287014683..854c72191da2 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -1193,7 +1193,8 @@ Currently, only the following parameter attributes are defined: ``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. _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits