]> granicus.if.org Git - clang/commitdiff
After consultation with doug, revert r131515.
authorSean Hunt <scshunt@csclub.uwaterloo.ca>
Wed, 18 May 2011 20:57:13 +0000 (20:57 +0000)
committerSean Hunt <scshunt@csclub.uwaterloo.ca>
Wed, 18 May 2011 20:57:13 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131574 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 9f146e9254c6da72bc342e8c7ff693ec8ef72641..1227c4eff2bc2ee58691b2d40756b7e806f551a4 100644 (file)
@@ -2997,12 +2997,6 @@ void Sema::CheckCompletedCXXClass(CXXRecordDecl *Record) {
   //   have inherited constructors.
   DeclareInheritedConstructors(Record);
 
-  // Unfortunately, in C++0x mode, we additionally have to declare all
-  // implicit members in order to ensure we don't get a horrible evil bad
-  // infinite recursion from ShouldDelete*
-  if (getLangOptions().CPlusPlus0x)
-    ForceDeclarationOfImplicitMembers(Record);
-
   CheckExplicitlyDefaultedMethods(Record);
 }
 
@@ -3459,10 +3453,8 @@ bool Sema::ShouldDeleteDefaultConstructor(CXXConstructorDecl *CD) {
 }
 
 bool Sema::ShouldDeleteCopyConstructor(CXXConstructorDecl *CD) {
-  CXXRecordDecl *RD = CD->getParent()->getDefinition();
+  CXXRecordDecl *RD = CD->getParent();
   assert(!RD->isDependentType() && "do deletion after instantiation");
-  assert(RD);
-  assert(CD->getParent() == RD);
   if (!LangOpts.CPlusPlus0x)
     return false;