Mercurial > projects > ldc
changeset 509:337554fd34f1
Fixed mini/missingti.d
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 14 Aug 2008 03:09:26 +0200 |
parents | af9bdd69a7ec |
children | 6aee82889553 |
files | dmd/mtype.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd/mtype.c Wed Aug 13 23:54:09 2008 +0200 +++ b/dmd/mtype.c Thu Aug 14 03:09:26 2008 +0200 @@ -1676,10 +1676,9 @@ 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(); }