summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-24 06:25:27 +0000
committerChris Lattner <sabre@nondot.org>2008-11-24 06:25:27 +0000
commit1e5665e6be5b00219581c1b951e0e5721c8b64e0 (patch)
treeb67f3b9be0871c3ff9bb37414bb3fe7723bd1156 /clang/lib/Sema/SemaInit.cpp
parentf3d3faeca60a7fab63ee03bf2b04d65d8640374e (diff)
downloadbcm5719-llvm-1e5665e6be5b00219581c1b951e0e5721c8b64e0.tar.gz
bcm5719-llvm-1e5665e6be5b00219581c1b951e0e5721c8b64e0.zip
Change a whole lot of diagnostics to take QualType's directly
instead of converting them to strings first. This also fixes a bunch of minor inconsistencies in the diagnostics emitted by clang and adds a bunch of FIXME's to DiagnosticKinds.def. llvm-svn: 59948
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 1e26c847148..42f9b14085e 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -144,7 +144,7 @@ void InitListChecker::CheckListElementTypes(InitListExpr *IList,
// This type is invalid, issue a diagnostic.
Index++;
SemaRef->Diag(IList->getLocStart(), diag::err_illegal_initializer_type)
- << DeclType.getAsString();
+ << DeclType;
hadError = true;
} else {
// In C, all types are either scalars or aggregates, but
OpenPOWER on IntegriCloud