mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Different fixes: phobos compiles now
This commit is contained in:
@@ -583,12 +583,22 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
|
||||
switch(rbase->ty)
|
||||
{
|
||||
case Tarray:
|
||||
#if DMDV2
|
||||
if (tf->isref)
|
||||
retllval = DtoBitCast(retllval, DtoType(rbase->pointerTo()));
|
||||
else
|
||||
#endif
|
||||
retllval = DtoAggrPaint(retllval, DtoType(rbase));
|
||||
break;
|
||||
|
||||
case Tclass:
|
||||
case Taarray:
|
||||
case Tpointer:
|
||||
#if DMDV2
|
||||
if (tf->isref)
|
||||
retllval = DtoBitCast(retllval, DtoType(rbase->pointerTo()));
|
||||
else
|
||||
#endif
|
||||
retllval = DtoBitCast(retllval, DtoType(rbase));
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user