Set irtype for underlying function type when building delegate types.

This fixes the problem of arg_nest disappearing when DtoType
is called on such types, e.g. as part of metadata generation.
This commit is contained in:
David Nadlinger
2012-12-21 00:32:07 +01:00
parent 7be9c5c5c7
commit 9d9f827efb
2 changed files with 20 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ class IrTypeFunction : public IrType
{
public:
///
static IrTypeFunction* get(Type* dt);
static IrTypeFunction* get(Type* dt, Type* nestedContextOverride = 0);
///
IrTypeFunction* isFunction() { return this; }