aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-06 22:58:38 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-06 22:58:38 +0000
commit4b99bae3bf2395f732eaadb9edc07690ae177f54 (patch)
tree7acb4532acf97035afb2f8836e61cb3eb23c3f6d /lib/Sema/SemaDecl.cpp
parentddc29e116db3c3f4144355e67a0137b38b6bb6d1 (diff)
Clean up an already-fixed FIXME
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 7ccc13c97d..bf16e1aeee 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -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,