]> granicus.if.org Git - clang/commitdiff
Remove a useless variable that got left behind.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 9 Nov 2009 01:11:03 +0000 (01:11 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 9 Nov 2009 01:11:03 +0000 (01:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86501 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 5dd62f5415dc82fdaab4af561c7fddb6faed7a44..41f8aec815bc82a3af71021ca068231b5343269c 100644 (file)
@@ -2957,10 +2957,6 @@ void Sema::DefineImplicitDefaultConstructor(SourceLocation CurrentLocation,
           !Constructor->isUsed()) &&
     "DefineImplicitDefaultConstructor - call it for implicit default ctor");
 
-  CXXRecordDecl *ClassDecl
-    = cast<CXXRecordDecl>(Constructor->getDeclContext());
-  assert(ClassDecl && "DefineImplicitDefaultConstructor - invalid constructor");
-
   SetBaseOrMemberInitializers(Constructor, 0, 0, true);
 
   Constructor->setUsed();