summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-28 12:20:14 +0000
committerAlp Toker <alp@nuanti.com>2014-05-28 12:20:14 +0000
commitaf940ca85c35a8b5edd1390763ef56f9e06023e1 (patch)
tree504259d1b817c175e82edeb2e8ef53b172e674b4 /lib/Sema/SemaInit.cpp
parent05cebba1a22b1f03bd5d535f2ba2fb9442149c7a (diff)
Consolidate some note diagnostics
These note diags have the same message and can be unified further but for now let's just bring them together. Incidental change: Display a source range in the final attr diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r--lib/Sema/SemaInit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index a16960213e..847d7ae919 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -6588,7 +6588,8 @@ bool InitializationSequence::Diagnose(Sema &S,
<< S.Context.getTypeDeclType(Constructor->getParent())
<< /*member=*/1
<< Entity.getName();
- S.Diag(Entity.getDecl()->getLocation(), diag::note_field_decl);
+ S.Diag(Entity.getDecl()->getLocation(),
+ diag::note_member_declared_at);
if (const RecordType *Record
= Entity.getType()->getAs<RecordType>())