aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-05-01 16:49:43 +0000
committerAnders Carlsson <andersca@mac.com>2010-05-01 16:49:43 +0000
commit1d1d1185b46173107f5292a16e3a6ca4d60f7486 (patch)
tree7def1e14129fb070883b004b6feb20c8501a54f9 /lib/CodeGen/CGClass.cpp
parent59b7f1538d9d4c4f7c3932e3e3f95d2cb0fca7e4 (diff)
Get rid of a parameter from EmitClassMemberwiseCopy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r--lib/CodeGen/CGClass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp
index 966a93c652..856cafe748 100644
--- a/lib/CodeGen/CGClass.cpp
+++ b/lib/CodeGen/CGClass.cpp
@@ -594,7 +594,7 @@ static llvm::Value *GetVTTParameter(CodeGenFunction &CGF, GlobalDecl GD) {
void CodeGenFunction::EmitClassMemberwiseCopy(
llvm::Value *Dest, llvm::Value *Src,
const CXXRecordDecl *ClassDecl,
- const CXXRecordDecl *BaseClassDecl, QualType Ty) {
+ const CXXRecordDecl *BaseClassDecl) {
CXXCtorType CtorType = Ctor_Complete;
if (ClassDecl) {
@@ -605,7 +605,7 @@ void CodeGenFunction::EmitClassMemberwiseCopy(
CtorType = Ctor_Base;
}
if (BaseClassDecl->hasTrivialCopyConstructor()) {
- EmitAggregateCopy(Dest, Src, Ty);
+ EmitAggregateCopy(Dest, Src, getContext().getTagDeclType(BaseClassDecl));
return;
}
@@ -718,7 +718,7 @@ CodeGenFunction::SynthesizeCXXCopyConstructor(const FunctionArgList &Args) {
}
else
EmitClassMemberwiseCopy(LHS.getAddress(), RHS.getAddress(),
- 0 /*ClassDecl*/, FieldClassDecl, FieldType);
+ 0 /*ClassDecl*/, FieldClassDecl);
continue;
}