aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-18 18:35:10 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-18 18:35:10 +0000
commit87cf6704e2fcce63d2bb0baafe8122c09a657737 (patch)
treee66c30d3c1121ec423de0de36d4ca33516f0752e
parent331e8010aed1c2175328ed470aea75e93ff70b32 (diff)
When diagnosing that a decl ref expr is not a value, note the declaration
with "declared at" rather than "previous declaration is here". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91699 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index dfd9555d03..7030b7f597 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/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();
}