OSDN Git Service

Clarify that 'sret' only applies to pointers, and
authorDuncan Sands <baldrick@free.fr>
Mon, 18 Feb 2008 04:19:38 +0000 (04:19 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 18 Feb 2008 04:19:38 +0000 (04:19 +0000)
only applies to the first parameter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47256 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 515f956..af88237 100644 (file)
@@ -823,8 +823,9 @@ declare i32 @atoi(i8*) nounwind readonly
     value, but is also valid on scalars (even though this is silly).</dd>
 
     <dt><tt>sret</tt></dt>
-    <dd>This indicates that the parameter specifies the address of a structure
-    that is the return value of the function in the source program.</dd>
+    <dd>This indicates that the pointer parameter specifies the address of a
+    structure that is the return value of the function in the source program.
+    May only be applied to the first parameter.</dd>
 
     <dt><tt>noalias</tt></dt>
     <dd>This indicates that the parameter does not alias any global or any other