[cfe-commits] r63975 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Douglas Gregor dgregor at apple.com
Fri Feb 6 14:58:38 PST 2009


Author: dgregor
Date: Fri Feb  6 16:58:38 2009
New Revision: 63975

URL: http://llvm.org/viewvc/llvm-project?rev=63975&view=rev
Log:
Clean up an already-fixed FIXME

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=63975&r1=63974&r2=63975&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Feb  6 16:58:38 2009
@@ -1682,14 +1682,8 @@
     // 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, 





More information about the cfe-commits mailing list