diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-15 04:24:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-15 04:24:24 +0000 |
commit | ec3455fb1373091effbf1445762d1347124f4865 (patch) | |
tree | 7bbb81498539c7247ef5d3714936234ea7a4b6ce | |
parent | 43f19e3136a9610eeba3cdef9f9af70d93df2f7e (diff) |
Fix a COVTCTII (crash-on-valid-that-clang-thinks-is-invalid, duh),
note_previous_decl was used where note_previous_declaration was intended. Better
names or PR5785 might be nice.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91413 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 7cdc275c7e..358f4456bb 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -1427,7 +1427,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS, if (!VD) { Diag(Loc, diag::err_ref_non_value) << D << SS.getRange(); - Diag(D->getLocation(), diag::note_previous_decl); + Diag(D->getLocation(), diag::note_previous_declaration); return ExprError(); } |