Mercurial > projects > ldc
diff gen/tocall.cpp @ 456:b975f29b7256
Make sure DtoType has been run on the DType before assembling a call.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 02 Aug 2008 21:20:31 +0200 |
parents | 283d113d4753 |
children | 672eb4893b55 |
line wrap: on
line diff
--- a/gen/tocall.cpp Sat Aug 02 17:24:10 2008 +0200 +++ b/gen/tocall.cpp Sat Aug 02 21:20:31 2008 +0200 @@ -186,6 +186,10 @@ // 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();