mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 04:13:14 +01:00
Make sure DtoType has been run on the DType before assembling a call.
This commit is contained in:
@@ -186,6 +186,10 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
|
||||
// the callee D type
|
||||
Type* calleeType = fnval->getType();
|
||||
|
||||
// if the type has not yet been processed, do so now
|
||||
if (calleeType->ir.type == NULL)
|
||||
DtoType(calleeType);
|
||||
|
||||
// get func value if any
|
||||
DFuncValue* dfnval = fnval->isFunc();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user