File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1309,12 +1309,14 @@ Currently, only the following parameter attributes are defined:
1309
1309
structure that is the return value of the function in the source
1310
1310
program. This pointer must be guaranteed by the caller to be valid:
1311
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.
1312
+ to trap and to be properly aligned.
1314
1313
1315
1314
The sret type argument specifies the in memory type, which must be
1316
1315
the same as the pointee type of the argument.
1317
1316
1317
+ A function that accepts an ``sret`` argument must return ``void``.
1318
+ A return value may not be ``sret``.
1319
+
1318
1320
.. _attr_elementtype:
1319
1321
1320
1322
``elementtype(<ty>)``
You can’t perform that action at this time.
0 commit comments