llvm-svn: 102179
This commit is contained in:
Anders Carlsson 2010-04-23 16:24:12 +00:00
parent 423f5d85fd
commit 7a0ffdbe53
1 changed files with 1 additions and 2 deletions

View File

@ -4153,8 +4153,7 @@ void Sema::DefineImplicitCopyConstructor(SourceLocation CurrentLocation,
!CopyConstructor->isUsed()) &&
"DefineImplicitCopyConstructor - call it for implicit copy ctor");
CXXRecordDecl *ClassDecl
= cast<CXXRecordDecl>(CopyConstructor->getDeclContext());
CXXRecordDecl *ClassDecl = CopyConstructor->getParent();
assert(ClassDecl && "DefineImplicitCopyConstructor - invalid constructor");
DeclContext *PreviousContext = CurContext;