Make sure DtoType has been run on the DType before assembling a call.

This commit is contained in:
Christian Kamm
2008-08-02 21:20:31 +02:00
parent 55639e01ea
commit 41d6279a64

View File

@@ -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();