From b48971d63f9e46c81de8777fa08239a4b2f07a42 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 18 Dec 2009 18:35:10 +0000 Subject: [PATCH] When diagnosing that a decl ref expr is not a value, note the declaration with "declared at" rather than "previous declaration is here". llvm-svn: 91699 --- clang/lib/Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index dfd9555d03a8..7030b7f597b5 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -1481,7 +1481,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS, if (!VD) { Diag(Loc, diag::err_ref_non_value) << D << SS.getRange(); - Diag(D->getLocation(), diag::note_previous_declaration); + Diag(D->getLocation(), diag::note_declared_at); return ExprError(); }