From c092165b3adc14aef93532937e09de1004bea01c Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Thu, 14 Aug 2008 03:09:26 +0200 Subject: [PATCH] Fixed mini/missingti.d --- dmd/mtype.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dmd/mtype.c b/dmd/mtype.c index d8fde78c..693d9bfa 100644 --- a/dmd/mtype.c +++ b/dmd/mtype.c @@ -1676,10 +1676,9 @@ Expression *TypeArray::dotExp(Scope *sc, Expression *e, Identifier *ident) e = e->castTo(sc, n->arrayOf()); // convert to dynamic array arguments = new Expressions(); arguments->push(e); - if (next->ty != Tbit) - arguments->push(n->ty == Tsarray - ? n->getTypeInfo(sc) // don't convert to dynamic array - : n->getInternalTypeInfo(sc)); + if (next->ty != Tbit) + arguments->push(n->getTypeInfo(sc)); // LLVMDC, we don't support the getInternalTypeInfo + // optimization arbitrarily, not yet at least... e = new CallExp(e->loc, ec, arguments); e->type = next->arrayOf(); }