From f9eede163826dd55a56c479330ef041eaa856417 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 30 Jul 2008 21:00:24 +0000 Subject: Fix implicit initialization of structures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54237 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprAgg.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/CodeGen/CGExprAgg.cpp') diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index ac2e6dec90..815e296e79 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -426,11 +426,6 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) { // Here we iterate over the fields; this makes it simpler to both // default-initialize fields and skip over unnamed fields. for (unsigned CurFieldNo = 0; CurFieldNo != NumMembers; ++CurFieldNo) { - if (CurInitVal >= NumInitElements) { - // No more initializers; we're done. - break; - } - FieldDecl *CurField = SD->getMember(CurFieldNo); if (CurField->getIdentifier() == 0) { // Initializers can't initialize unnamed fields, e.g. "int : 20;" -- cgit v1.2.3