diff options
author | Anders Carlsson <andersca@mac.com> | 2010-05-01 16:39:01 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-05-01 16:39:01 +0000 |
commit | 59b7f1538d9d4c4f7c3932e3e3f95d2cb0fca7e4 (patch) | |
tree | 73a1f3d3da9953a37c957ab27fe911244507c1bb /lib/CodeGen/CGClass.cpp | |
parent | 39957dce3df743023906926b40108d99bc8b0ce2 (diff) |
When defining implicit copy constructors, use SetBaseOrMemberInitializers to initialize the bases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index 56d0e695c5..966a93c652 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -692,18 +692,6 @@ CodeGenFunction::SynthesizeCXXCopyConstructor(const FunctionArgList &Args) { llvm::Value *SrcPtr = Builder.CreateLoad(GetAddrOfLocalVar(Args[SrcArgIndex].first)); - for (CXXRecordDecl::base_class_const_iterator Base = ClassDecl->bases_begin(); - Base != ClassDecl->bases_end(); ++Base) { - // FIXME. copy constrution of virtual base NYI - if (Base->isVirtual()) - continue; - - CXXRecordDecl *BaseClassDecl - = cast<CXXRecordDecl>(Base->getType()->getAs<RecordType>()->getDecl()); - EmitClassMemberwiseCopy(ThisPtr, SrcPtr, ClassDecl, BaseClassDecl, - Base->getType()); - } - for (CXXRecordDecl::field_iterator I = ClassDecl->field_begin(), E = ClassDecl->field_end(); I != E; ++I) { const FieldDecl *Field = *I; |