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 94ff8f7..d495cd3 100644
--- a/lib/CodeGen/CGExprConstant.cpp
+++ b/lib/CodeGen/CGExprConstant.cpp
@@ -93,12 +93,6 @@
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 @@
}
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 @@
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);
}