MS ABI: Use the correct this arg when generating implicit array copy ctor
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 15 Oct 2014 04:54:54 +0000 (04:54 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 15 Oct 2014 04:54:54 +0000 (04:54 +0000)
commit1573d73367a454b033dd6f840a1a4cb6a739d152
treea59720ecdd88e5930d92c894be2c4b9b8100d0d9
parent5b993500aec59e3b42038e1d335da6fc6a78886d
MS ABI: Use the correct this arg when generating implicit array copy ctor

We assumed the last argument of the copy constructor was the this
pointer.  However, this is not the case under the MS ABI.

llvm-svn: 219775
clang/lib/CodeGen/CGClass.cpp
clang/test/CodeGenCXX/pr20897.cpp