]> granicus.if.org Git - clang/commitdiff
Fix a COVTCTII (crash-on-valid-that-clang-thinks-is-invalid, duh),
authorDaniel Dunbar <daniel@zuster.org>
Tue, 15 Dec 2009 04:24:24 +0000 (04:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 15 Dec 2009 04:24:24 +0000 (04:24 +0000)
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

lib/Sema/SemaExpr.cpp

index 7cdc275c7ec8f8e4ca16cb3d8f704164ba185f0b..358f4456bb0cc07e1e437f00f9f5f8355732cd7a 100644 (file)
@@ -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();
   }