Removed useless assert in ArrayLiteralExp::toConstElem

Added second verification pass after optimization
Commented an optimization pass out from lvl2, it turns the IR invalid, see llvm PR 2800
This commit is contained in:
Tomas Lindquist Olsen
2008-09-16 16:06:39 +02:00
parent 713a734d58
commit 1daa67ba50
3 changed files with 17 additions and 3 deletions

View File

@@ -2219,8 +2219,6 @@ LLConstant* ArrayLiteralExp::toConstElem(IRState* p)
// dynamic arrays can occur here as well ...
bool dyn = (bt->ty == Tarray);
if (!dyn)
assert(arrtype->getNumElements() == elements->dim);
// build the initializer
std::vector<LLConstant*> vals(elements->dim, NULL);