changeset 603:10bc9eb9e262

Fix typo in ArrayLiteralExp::toConstElem.
author Christian Kamm <kamm incasoftware de>
date Tue, 16 Sep 2008 08:42:40 +0200
parents 48f079b4fe0f
children a30fc28e8f23
files gen/toir.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gen/toir.cpp	Mon Sep 15 15:48:59 2008 +0200
+++ b/gen/toir.cpp	Tue Sep 16 08:42:40 2008 +0200
@@ -2218,11 +2218,9 @@
     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);