]> granicus.if.org Git - clang/commit
MS ABI: Ensure 'this' is first for byval+sret methods
authorReid Kleckner <reid@kleckner.net>
Sat, 26 Jul 2014 00:12:26 +0000 (00:12 +0000)
committerReid Kleckner <reid@kleckner.net>
Sat, 26 Jul 2014 00:12:26 +0000 (00:12 +0000)
commitfa5442be26502cdcd29c9931c19c2a68295a61d5
treed281944f23a8a60a6b3931cb08bea78e8397b682
parentd898c50389548ad49a44700088e7cb330214a0bc
MS ABI: Ensure 'this' is first for byval+sret methods

Previously we were building up the inalloca struct in the usual pattern
of return type followed by arguments.  However, on Windows, 'this'
always precedes the 'sret' parameter, so we need to insert it into the
struct first as a special case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGenCXX/microsoft-abi-byval-sret.cpp