Remove an unused parameter from isImplicitlyDefined.

llvm-svn: 101962
This commit is contained in:
Anders Carlsson 2010-04-20 23:32:58 +00:00
parent 7bc797b0ca
commit b722993cff
2 changed files with 2 additions and 3 deletions

View File

@ -1217,7 +1217,7 @@ public:
/// defined. If false, then this constructor was defined by the
/// user. This operation can only be invoked if the constructor has
/// already been defined.
bool isImplicitlyDefined(ASTContext &C) const {
bool isImplicitlyDefined() const {
assert(isThisDeclarationADefinition() &&
"Can only get the implicit-definition flag once the "
"constructor has been defined");

View File

@ -5678,8 +5678,7 @@ void Sema::DiagnoseNontrivial(const RecordType* T, CXXSpecialMember member) {
for (ctor_iter ci = RD->ctor_begin(), ce = RD->ctor_end(); ci != ce;++ci){
const FunctionDecl *body = 0;
ci->getBody(body);
if (!body ||
!cast<CXXConstructorDecl>(body)->isImplicitlyDefined(Context)) {
if (!body || !cast<CXXConstructorDecl>(body)->isImplicitlyDefined()) {
SourceLocation CtorLoc = ci->getLocation();
Diag(CtorLoc, diag::note_nontrivial_user_defined) << QT << member;
return;