]> granicus.if.org Git - clang/commitdiff
Get rid of a parameter from EmitClassMemberwiseCopy.
authorAnders Carlsson <andersca@mac.com>
Sat, 1 May 2010 16:49:43 +0000 (16:49 +0000)
committerAnders Carlsson <andersca@mac.com>
Sat, 1 May 2010 16:49:43 +0000 (16:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102845 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGClass.cpp
lib/CodeGen/CodeGenFunction.h

index 966a93c65202da4d9bbf7bd4aeb5f422b6f85f40..856cafe748a7cd1e64e800d078b3003a34619048 100644 (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;
     }
     
index c62d19a7abbf4249c2c5fb4bb34bad7f8c7018c4..0f19c2eae1fa9b343d02e64cc569ab66666c2a07 100644 (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);