Remove restriction that 'sret' must be on the first parameter
authorReid Kleckner <rnk@google.com>
Thu, 8 Sep 2016 15:45:27 +0000 (15:45 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 8 Sep 2016 15:45:27 +0000 (15:45 +0000)
commit1361c0c6efc08e4808b67cab6e22d0a7a5f81fc7
treeba9c436738388e37a5a58902c43bea8bf53c220a
parentcb5c98b14a301613c453ffcfa19bffebd4a4e820
Remove restriction that 'sret' must be on the first parameter

On Windows, it is often applied to the second parameter, and the x86
backend is prepared to deal with sret appearing on any parameter.

Other backends assume it only appears on parameter zero, but those are
target-specific requirements, and not an IR-level rule.

llvm-svn: 280951
llvm/docs/LangRef.rst