]> granicus.if.org Git - clang/commit
MS ABI: Use the correct this arg when generating implict copy ctor
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Sep 2014 23:05:02 +0000 (23:05 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Sep 2014 23:05:02 +0000 (23:05 +0000)
commit82903d62ebe3245a16b2086bf702990ca56401e3
tree7d6da28a8f56483f5b224f49e601da00879c794b
parent37e48be46c18b9322ff88daca6c096d86bd8e619
MS ABI: Use the correct this arg when generating implict copy ctor

We assumed that the incoming this argument would be the last argument.

However, this is not true under the MS ABI.

This fixes PR20897.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXXABI.h
lib/CodeGen/CGClass.cpp
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/pr20897.cpp [new file with mode: 0644]