diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 5dd62f5415dc..41f8aec815bc 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -2957,10 +2957,6 @@ void Sema::DefineImplicitDefaultConstructor(SourceLocation CurrentLocation, !Constructor->isUsed()) && "DefineImplicitDefaultConstructor - call it for implicit default ctor"); - CXXRecordDecl *ClassDecl - = cast(Constructor->getDeclContext()); - assert(ClassDecl && "DefineImplicitDefaultConstructor - invalid constructor"); - SetBaseOrMemberInitializers(Constructor, 0, 0, true); Constructor->setUsed();