mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Adapt to changed TypeDelegate constructor signature
This commit is contained in:
parent
e9f40d8a1a
commit
7aed600440
2 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ DsymbolExp *createDsymbolExp(const Loc &, Dsymbol *, bool = false);
|
|||
Expression *createExpression(const Loc &loc, TOK op, int size);
|
||||
InlineAsmStatement *createInlineAsmStatement(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);
|
||||
|
||||
Strings *createStrings();
|
||||
|
|
|
@ -401,9 +401,9 @@ static void DtoCreateNestedContextType(FuncDeclaration *fd) {
|
|||
t = DtoType(vd->type->pointerTo());
|
||||
} else if (isParam && (vd->storage_class & STClazy)) {
|
||||
// the type is a delegate (LL struct)
|
||||
Type *dt = TypeFunction::create(nullptr, vd->type, VARARGnone, LINK::d);
|
||||
dt = createTypeDelegate(dt);
|
||||
t = DtoType(dt);
|
||||
auto tf = TypeFunction::create(nullptr, vd->type, VARARGnone, LINK::d);
|
||||
auto td = createTypeDelegate(tf);
|
||||
t = DtoType(td);
|
||||
} else {
|
||||
t = DtoMemType(vd->type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue