]> granicus.if.org Git - clang/commit
MS ABI: Use musttail for thunk IR generation
authorReid Kleckner <reid@kleckner.net>
Thu, 15 May 2014 23:01:46 +0000 (23:01 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 15 May 2014 23:01:46 +0000 (23:01 +0000)
commit80ace8a9362c1a62e9bb5ef67d1e6178855ea73b
tree2b2a35b6902afdfd9afb286cef8f238d21511ee6
parent82893e7e14eb44c73353134eda51f91be0209b08
MS ABI: Use musttail for thunk IR generation

This allows us to perfectly forward non-trivial arguments that use
inalloca.

We still can't forward non-trivial arguments through thunks when we have
a covariant return type with a non-trivial adjustment.  This would
require emitting an extra copy, which is non-conforming anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208927 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-nontrivial-covariant-thunk.cpp [new file with mode: 0644]
test/CodeGenCXX/microsoft-abi-nontrivial-memptr-thunks.cpp [deleted file]
test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp