From 310cdb14bfd34b6d78ab6cd2d040bc8aac1f036b Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 16 Sep 2008 08:42:40 +0200 Subject: [PATCH] Fix typo in ArrayLiteralExp::toConstElem. --- gen/toir.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index 89a3454e..4cf3db6b 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -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 vals(elements->dim, NULL);