1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[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
This commit is contained in:
Juneyoung Lee 2021-01-11 14:42:08 +09:00
parent 521d6a1785
commit 38ff89f219

View File

@ -1193,7 +1193,8 @@ Currently, only the following parameter attributes are defined:
``nocapture`` ``nocapture``
This indicates that the callee does not make any copies of the 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 attribute for return values. Addresses used in volatile operations
are considered to be captured. are considered to be captured.