diff options
Diffstat (limited to 'identifiers.c')
-rw-r--r-- | identifiers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/identifiers.c b/identifiers.c index b7f5e06..7aa6ee8 100644 --- a/identifiers.c +++ b/identifiers.c @@ -144,12 +144,13 @@ static char *ident_to_str(Identifier i) { return str; } -static void ident_add_decl(Identifier i, struct Declaration *d, struct Block *b) { +static IdentDecl *ident_add_decl(Identifier i, struct Declaration *d, struct Block *b) { IdentDecl *id_decl = arr_add(&i->decls); id_decl->decl = d; id_decl->scope = b; id_decl->flags = 0; id_decl->kind = IDECL_DECL; + return id_decl; } static IdentDecl *ident_decl(Identifier i) { |