]> granicus.if.org Git - clang/commit
MS ABI x64: Don't destroy arguments twice on x64
authorReid Kleckner <reid@kleckner.net>
Thu, 1 May 2014 03:07:18 +0000 (03:07 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 1 May 2014 03:07:18 +0000 (03:07 +0000)
commit380c0cfb644a51fb7bdecea32d83da5111dde0ab
treea58e248ddb5bcd5e1dcc5d938b5c4b73f68411c7
parentfc666be85c1653c29ba0c4a4799c8d6bdc9fe456
MS ABI x64: Don't destroy arguments twice on x64

We were destroying them in the callee, and then again in the caller.  We
should use an EH-only cleanup and disable it at the point of the call
for win64, even though we don't use inalloca.

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