Fix #217. getInternalTypeInfo doesn't work with LDC.

This commit is contained in:
Christian Kamm
2009-02-17 18:57:11 +01:00
parent f62df176d6
commit b3de4e773e

View File

@@ -2450,7 +2450,7 @@ Expression *TypeAArray::dotExp(Scope *sc, Expression *e, Identifier *ident)
ec = new VarExp(0, aaRehash_fd);
arguments = new Expressions();
arguments->push(e->addressOf(sc));
arguments->push(key->getInternalTypeInfo(sc));
arguments->push(key->getTypeInfo(sc)); // LDC doesn't support getInternalTypeInfo, see above
e = new CallExp(e->loc, ec, arguments);
e->type = this;
}