Fix DelegateExp::toElem return type

This commit is contained in:
Alexey Prokhin
2011-10-24 12:55:53 +04:00
parent 0b159f635d
commit 81426b8cc8

View File

@@ -2248,7 +2248,7 @@ DValue* DelegateExp::toElem(IRState* p)
castfptr = DtoBitCast(castfptr, dgty->getContainedType(1));
return new DImValue(type, DtoAggrPair(castcontext, castfptr, ".dg"));
return new DImValue(type, DtoAggrPair(DtoType(type), castcontext, castfptr, ".dg"));
}
//////////////////////////////////////////////////////////////////////////////////////////