remove the last old-fashioned Diag method. Transition complete!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59714 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index a2bbbba..1e26c84 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -143,8 +143,8 @@
} 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