mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 16:43:13 +01:00
Fix DelegateExp::toElem return type
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user