We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751db4b commit fdf2b0aCopy full SHA for fdf2b0a
llvm/docs/LangRef.rst
@@ -1309,12 +1309,14 @@ Currently, only the following parameter attributes are defined:
1309
structure that is the return value of the function in the source
1310
program. This pointer must be guaranteed by the caller to be valid:
1311
loads and stores to the structure may be assumed by the callee not
1312
- to trap and to be properly aligned. This is not a valid attribute
1313
- for return values.
+ to trap and to be properly aligned.
1314
1315
The sret type argument specifies the in memory type, which must be
1316
the same as the pointee type of the argument.
1317
+ A function that accepts an ``sret`` argument must return ``void``.
1318
+ A return value may not be ``sret``.
1319
+
1320
.. _attr_elementtype:
1321
1322
``elementtype(<ty>)``
0 commit comments