Adapt to changed TypeDelegate constructor signature

This commit is contained in:
Martin Kinkelin 2021-09-06 18:50:48 +02:00
parent e9f40d8a1a
commit 7aed600440
2 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ DsymbolExp *createDsymbolExp(const Loc &, Dsymbol *, bool = false);
Expression *createExpression(const Loc &loc, TOK op, int size); Expression *createExpression(const Loc &loc, TOK op, int size);
InlineAsmStatement *createInlineAsmStatement(const Loc &loc, Token *tokens); InlineAsmStatement *createInlineAsmStatement(const Loc &loc, Token *tokens);
GccAsmStatement *createGccAsmStatement(const Loc &loc, Token *tokens); GccAsmStatement *createGccAsmStatement(const Loc &loc, Token *tokens);
TypeDelegate *createTypeDelegate(Type *t); TypeDelegate *createTypeDelegate(TypeFunction *tf);
TypeIdentifier *createTypeIdentifier(const Loc &loc, Identifier *ident); TypeIdentifier *createTypeIdentifier(const Loc &loc, Identifier *ident);
Strings *createStrings(); Strings *createStrings();

View file

@ -401,9 +401,9 @@ static void DtoCreateNestedContextType(FuncDeclaration *fd) {
t = DtoType(vd->type->pointerTo()); t = DtoType(vd->type->pointerTo());
} else if (isParam && (vd->storage_class & STClazy)) { } else if (isParam && (vd->storage_class & STClazy)) {
// the type is a delegate (LL struct) // the type is a delegate (LL struct)
Type *dt = TypeFunction::create(nullptr, vd->type, VARARGnone, LINK::d); auto tf = TypeFunction::create(nullptr, vd->type, VARARGnone, LINK::d);
dt = createTypeDelegate(dt); auto td = createTypeDelegate(tf);
t = DtoType(dt); t = DtoType(td);
} else { } else {
t = DtoMemType(vd->type); t = DtoMemType(vd->type);
} }