MS ABI: Use musttail for vtable thunks that pass arguments by value
authorReid Kleckner <reid@kleckner.net>
Sat, 26 Jul 2014 01:34:32 +0000 (01:34 +0000)
committerReid Kleckner <reid@kleckner.net>
Sat, 26 Jul 2014 01:34:32 +0000 (01:34 +0000)
commitab2090d107659eee51faa529189984cd90af465a
tree9b8bd8bd23d6f096ddd8e08629bfa4a99b753bad
parent3f76ac7daa8c51f833c2a36aaca8f152632e28f3
MS ABI: Use musttail for vtable thunks that pass arguments by value

This moves some memptr specific code into the generic thunk emission
codepath.

Fixes PR20053.

Reviewers: majnemer

Differential Revision: http://reviews.llvm.org/D4613

llvm-svn: 214004
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGVTables.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/CodeGen/MicrosoftCXXABI.cpp
clang/test/CodeGenCXX/microsoft-abi-byval-thunks.cpp
clang/test/CodeGenCXX/microsoft-abi-nontrivial-covariant-thunk.cpp
clang/test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp