diff gen/toir.cpp @ 605:e235b80c92bc

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
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 16 Sep 2008 16:06:39 +0200
parents 10bc9eb9e262
children 1b62222581fb
line wrap: on
line diff
--- a/gen/toir.cpp	Tue Sep 16 09:00:05 2008 +0200
+++ b/gen/toir.cpp	Tue Sep 16 16:06:39 2008 +0200
@@ -2219,8 +2219,6 @@
 
     // 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);