summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXXABI.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-09-11 23:05:02 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-09-11 23:05:02 +0000
commit196ac334f32f81d9fe040d51de4117c86c7087bf (patch)
tree1ed72f0ee4a978653049c6ecf2be7dc0b266250d /clang/lib/CodeGen/CGCXXABI.h
parent42fa4af8fe4e672d0b8bd4a5ebeec9b45730a0ff (diff)
downloadbcm5719-llvm-196ac334f32f81d9fe040d51de4117c86c7087bf.tar.gz
bcm5719-llvm-196ac334f32f81d9fe040d51de4117c86c7087bf.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CGCXXABI.h')
-rw-r--r--clang/lib/CodeGen/CGCXXABI.h3
1 files changed, 3 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud