]> granicus.if.org Git - clang/commitdiff
Remove an unused parameter from isImplicitlyDefined.
authorAnders Carlsson <andersca@mac.com>
Tue, 20 Apr 2010 23:32:58 +0000 (23:32 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 20 Apr 2010 23:32:58 +0000 (23:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101962 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h
lib/Sema/SemaDecl.cpp

index ba6f31cff8e832694525879f1d6fcd8211b4b413..5e791c39b57196bf2bfaef7afab6057596bf6487 100644 (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");
index 9ef03591187a216554d3987c74f0b0350b1a96ae..dc59fa4fbfc1839d61c44503960e3c8183566c6b 100644 (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;