Minor change per Doug's comments.

- Fariborz

llvm-svn: 74287
This commit is contained in:
Fariborz Jahanian 2009-06-26 16:08:57 +00:00
parent 6d94e6a5f3
commit ebe772e2f2
1 changed files with 4 additions and 2 deletions

View File

@ -1940,7 +1940,9 @@ void Sema::DefineImplicitDefaultConstructor(SourceLocation CurrentLocation,
}
}
if (!err)
Constructor->setUsed();
Constructor->setUsed();
else
Constructor->setInvalidDecl();
}
void Sema::DefineImplicitOverloadedAssign(SourceLocation CurrentLocation,
@ -1954,7 +1956,7 @@ void Sema::DefineImplicitOverloadedAssign(SourceLocation CurrentLocation,
= cast<CXXRecordDecl>(MethodDecl->getDeclContext());
assert(ClassDecl && "DefineImplicitOverloadedAssign - invalid constructor");
// C++[class.copy] p210
// C++[class.copy] p12
// Before the implicitly-declared copy assignment operator for a class is
// implicitly defined, all implicitly-declared copy assignment operators
// for its direct base classes and its nonstatic data members shall have