[cfe-commits] r91699 - /cfe/trunk/lib/Sema/SemaExpr.cpp
John McCall
rjmccall at apple.com
Fri Dec 18 10:35:10 PST 2009
Author: rjmccall
Date: Fri Dec 18 12:35:10 2009
New Revision: 91699
URL: http://llvm.org/viewvc/llvm-project?rev=91699&view=rev
Log:
When diagnosing that a decl ref expr is not a value, note the declaration
with "declared at" rather than "previous declaration is here".
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=91699&r1=91698&r2=91699&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Fri Dec 18 12:35:10 2009
@@ -1481,7 +1481,7 @@
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();
}
More information about the cfe-commits
mailing list