From 41d6279a64fafcd2c849042ab74e3df0060da533 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sat, 2 Aug 2008 21:20:31 +0200 Subject: [PATCH] Make sure DtoType has been run on the DType before assembling a call. --- gen/tocall.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gen/tocall.cpp b/gen/tocall.cpp index 82db954c..ce82c823 100644 --- a/gen/tocall.cpp +++ b/gen/tocall.cpp @@ -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();