From 196ac334f32f81d9fe040d51de4117c86c7087bf Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 11 Sep 2014 23:05:02 +0000 Subject: 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. llvm-svn: 217642 --- clang/lib/CodeGen/CGCXXABI.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/CodeGen/CGCXXABI.h') diff --git a/clang/lib/CodeGen/CGCXXABI.h b/clang/lib/CodeGen/CGCXXABI.h index fe331795e91..cf2cccd9910 100644 --- a/clang/lib/CodeGen/CGCXXABI.h +++ b/clang/lib/CodeGen/CGCXXABI.h @@ -384,6 +384,9 @@ public: virtual void EmitReturnFromThunk(CodeGenFunction &CGF, RValue RV, QualType ResultType); + virtual size_t getSrcArgforCopyCtor(const CXXConstructorDecl *, + FunctionArgList &Args) const = 0; + /// Gets the pure virtual member call function. virtual StringRef GetPureVirtualCallName() = 0; -- cgit v1.2.3