[cfe-commits] r51284 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Eli Friedman
eli.friedman at gmail.com
Mon May 19 17:04:22 PDT 2008
Author: efriedma
Date: Mon May 19 19:04:21 2008
New Revision: 51284
URL: http://llvm.org/viewvc/llvm-project?rev=51284&view=rev
Log:
Remove code that shouldn't have any effect anymore.
Modified:
cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=51284&r1=51283&r2=51284&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Mon May 19 19:04:21 2008
@@ -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);
}
More information about the cfe-commits
mailing list