From: Eli Friedman Date: Tue, 20 May 2008 00:04:21 +0000 (+0000) Subject: Remove code that shouldn't have any effect anymore. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef648c76745ee5e4105eec22dbc97fac18145bd6;p=clang Remove code that shouldn't have any effect anymore. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51284 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 94ff8f779c..d495cd38be 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -93,12 +93,6 @@ public: for (; i < NumInitableElts; ++i) { llvm::Constant *C = Visit(ILE->getInit(i)); - // FIXME: Remove this when sema of initializers is finished (and the code - // above). - if (C == 0 && ILE->getInit(i)->getType()->isVoidType()) { - if (ILE->getType()->isVoidType()) return 0; - return llvm::UndefValue::get(AType); - } assert (C && "Failed to create initializer expression"); Elts.push_back(C); } @@ -137,12 +131,6 @@ public: } llvm::Constant *C = Visit(ILE->getInit(EltNo)); - // FIXME: Remove this when sema of initializers is finished (and the code - // above). - if (C == 0 && ILE->getInit(EltNo)->getType()->isVoidType()) { - if (ILE->getType()->isVoidType()) return 0; - return llvm::UndefValue::get(SType); - } assert (C && "Failed to create initializer expression"); Elts.push_back(C); EltNo++; @@ -172,12 +160,6 @@ public: for (; i < NumElements; ++i) { llvm::Constant *C = Visit(ILE->getInit(i)); - // FIXME: Remove this when sema of initializers is finished (and the code - // above). - if (C == 0 && ILE->getInit(i)->getType()->isVoidType()) { - if (ILE->getType()->isVoidType()) return 0; - return llvm::UndefValue::get(VType); - } assert (C && "Failed to create initializer expression"); Elts.push_back(C); }