]> granicus.if.org Git - clang/commit
MS ABI: "Fix" passing non-POD structs by value to variadic functions
authorReid Kleckner <reid@kleckner.net>
Tue, 8 Jul 2014 02:24:27 +0000 (02:24 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 8 Jul 2014 02:24:27 +0000 (02:24 +0000)
commit7e57cd2b32e31edae5160f72b51ed77d69ccb1cc
treee0bd81336ab069cb7ecb455f60b13956d12a2a2a
parentb6f54990d83c259ccb19e57cb2b98a617183e44f
MS ABI: "Fix" passing non-POD structs by value to variadic functions

Of course, such code is horribly broken and will explode on impact.
That said, ATL does it, and we have to support them, at least a little
bit.

Fixes PR20191.

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