From: Daniel Dunbar Date: Tue, 15 Dec 2009 04:24:24 +0000 (+0000) Subject: Fix a COVTCTII (crash-on-valid-that-clang-thinks-is-invalid, duh), X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec3455fb1373091effbf1445762d1347124f4865;p=clang 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 --- 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(); }