]> granicus.if.org Git - clang/commitdiff
Remove function parameter which always used the default value.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 23 Aug 2011 20:17:13 +0000 (20:17 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 23 Aug 2011 20:17:13 +0000 (20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138368 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaInit.cpp

index ee122ff05d622f11e0647e5c09bb9068b73da679..a61b1d11fc5a9542eda2a154a41a4342150c6f1a 100644 (file)
@@ -177,8 +177,7 @@ class InitListChecker {
   void CheckImplicitInitList(const InitializedEntity &Entity,
                              InitListExpr *ParentIList, QualType T,
                              unsigned &Index, InitListExpr *StructuredList,
-                             unsigned &StructuredIndex,
-                             bool TopLevelObject = false);
+                             unsigned &StructuredIndex);
   void CheckExplicitInitList(const InitializedEntity &Entity,
                              InitListExpr *IList, QualType &T,
                              unsigned &Index, InitListExpr *StructuredList,
@@ -495,8 +494,7 @@ void InitListChecker::CheckImplicitInitList(const InitializedEntity &Entity,
                                             InitListExpr *ParentIList,
                                             QualType T, unsigned &Index,
                                             InitListExpr *StructuredList,
-                                            unsigned &StructuredIndex,
-                                            bool TopLevelObject) {
+                                            unsigned &StructuredIndex) {
   int maxElements = 0;
 
   if (T->isArrayType())
@@ -529,8 +527,7 @@ void InitListChecker::CheckImplicitInitList(const InitializedEntity &Entity,
   CheckListElementTypes(Entity, ParentIList, T,
                         /*SubobjectIsDesignatorContext=*/false, Index,
                         StructuredSubobjectInitList,
-                        StructuredSubobjectInitIndex,
-                        TopLevelObject);
+                        StructuredSubobjectInitIndex);
   unsigned EndIndex = (Index == StartIndex? StartIndex : Index - 1);
   StructuredSubobjectInitList->setType(T);