forked from OSchip/llvm-project
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
This commit is contained in:
parent
d0139fd3e5
commit
b48971d63f
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue