aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r--lib/Sema/SemaInit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index a2bbbba688..1e26c84714 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -143,8 +143,8 @@ void InitListChecker::CheckListElementTypes(InitListExpr *IList,
} else if (DeclType->isVoidType() || DeclType->isFunctionType()) {
// This type is invalid, issue a diagnostic.
Index++;
- SemaRef->Diag(IList->getLocStart(), diag::err_illegal_initializer_type,
- DeclType.getAsString());
+ SemaRef->Diag(IList->getLocStart(), diag::err_illegal_initializer_type)
+ << DeclType.getAsString();
hadError = true;
} else {
// In C, all types are either scalars or aggregates, but