]> granicus.if.org Git - clang/commitdiff
Clean up an already-fixed FIXME
authorDouglas Gregor <dgregor@apple.com>
Fri, 6 Feb 2009 22:58:38 +0000 (22:58 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 6 Feb 2009 22:58:38 +0000 (22:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63975 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 7ccc13c97d15e50083df85f922309f2cb3ddeb34..bf16e1aeeeea12ff2978476b0f5481f7f41b344b 100644 (file)
@@ -1682,14 +1682,8 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
     // Complain about this problem, and attempt to suggest close
     // matches (e.g., those that differ only in cv-qualifiers and
     // whether the parameter types are references).
-    DeclarationName CtxName;
-    if (DC->isRecord())
-      CtxName = cast<RecordDecl>(DC)->getDeclName();
-    else if (DC->isNamespace())
-      CtxName = cast<NamespaceDecl>(DC)->getDeclName();
-    // FIXME: global scope
     Diag(D.getIdentifierLoc(), diag::err_member_def_does_not_match)
-      << CtxName << D.getCXXScopeSpec().getRange();
+      << cast<NamedDecl>(DC) << D.getCXXScopeSpec().getRange();
     InvalidDecl = true;
     
     LookupResult Prev = LookupQualifiedName(DC, Name, LookupOrdinaryName,