aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index be14341513..ada6ceb68a 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -730,8 +730,13 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType) {
return CheckSingleInitializer(Init, DeclType);
}
+#if 1
unsigned newIndex = 0;
return CheckInitializerListTypes(InitList, DeclType, true, newIndex);
+#else
+ InitListChecker CheckInitList(this, InitList, DeclType);
+ return CheckInitList.HadError();
+#endif
}
Sema::DeclTy *