[cfe-commits] r91413 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Daniel Dunbar
daniel at zuster.org
Mon Dec 14 20:24:24 PST 2009
Author: ddunbar
Date: Mon Dec 14 22:24:24 2009
New Revision: 91413
URL: http://llvm.org/viewvc/llvm-project?rev=91413&view=rev
Log:
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.
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=91413&r1=91412&r2=91413&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Dec 14 22:24:24 2009
@@ -1427,7 +1427,7 @@
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();
}
More information about the cfe-commits
mailing list