Get rid of a parameter from EmitClassMemberwiseCopy.

llvm-svn: 102845
This commit is contained in:
Anders Carlsson 2010-05-01 16:49:43 +00:00
parent 1ebb395cee
commit 820022c55c
2 changed files with 4 additions and 5 deletions

View File

@ -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;
}

View File

@ -819,8 +819,7 @@ public:
void EmitClassMemberwiseCopy(llvm::Value *DestValue, llvm::Value *SrcValue,
const CXXRecordDecl *ClassDecl,
const CXXRecordDecl *BaseClassDecl,
QualType Ty);
const CXXRecordDecl *BaseClassDecl);
void EmitClassCopyAssignment(llvm::Value *DestValue, llvm::Value *SrcValue,
const CXXRecordDecl *ClassDecl);