Support ptr -> AA casts

This commit is contained in:
Martin Kinkelin 2018-12-18 20:39:44 +01:00
parent fa07848d26
commit 04e9910ad2

View file

@ -542,7 +542,7 @@ DValue *DtoCastPtr(Loc &loc, DValue *val, Type *to) {
LLValue *rval;
if (totype->ty == Tpointer || totype->ty == Tclass) {
if (totype->ty == Tpointer || totype->ty == Tclass || totype->ty == Taarray) {
LLValue *src = DtoRVal(val);
IF_LOG {
Logger::cout() << "src: " << *src << '\n';