Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
455:d3d3519b72e8 | 456:b975f29b7256 |
---|---|
183 | 183 |
184 DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions* arguments) | 184 DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions* arguments) |
185 { | 185 { |
186 // the callee D type | 186 // the callee D type |
187 Type* calleeType = fnval->getType(); | 187 Type* calleeType = fnval->getType(); |
188 | |
189 // if the type has not yet been processed, do so now | |
190 if (calleeType->ir.type == NULL) | |
191 DtoType(calleeType); | |
188 | 192 |
189 // get func value if any | 193 // get func value if any |
190 DFuncValue* dfnval = fnval->isFunc(); | 194 DFuncValue* dfnval = fnval->isFunc(); |
191 | 195 |
192 // handle special vararg intrinsics | 196 // handle special vararg intrinsics |