Fix typo in ArrayLiteralExp::toConstElem.

This commit is contained in:
Christian Kamm
2008-09-16 08:42:40 +02:00
parent 56fed01c88
commit 310cdb14bf

View File

@@ -2218,11 +2218,9 @@ LLConstant* ArrayLiteralExp::toConstElem(IRState* p)
const LLArrayType* arrtype = LLArrayType::get(DtoType(elemt), elements->dim);
// dynamic arrays can occur here as well ...
bool dyn = (bt->ty == Tsarray);
bool dyn = (bt->ty == Tarray);
if (!dyn)
assert(arrtype->getNumElements() == elements->dim);
else
assert(bt->ty == Tarray);
// build the initializer
std::vector<LLConstant*> vals(elements->dim, NULL);