diff options
Diffstat (limited to 'identifiers.c')
-rw-r--r-- | identifiers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/identifiers.c b/identifiers.c index 5e0f531..10fe844 100644 --- a/identifiers.c +++ b/identifiers.c @@ -93,6 +93,12 @@ static Identifier ident_insert(Identifiers *ids, char **s) { } static char *ident_to_str(Identifier i) { + if (i->anonymous) { + char *s = malloc(4); + strcpy(s, "???"); + return s; + } + char *str = err_malloc(i->len + 1); /* for some reason, GCC thinks that i->len is -1 when this is called from type_to_str_ (in release mode) TODO: test this now (some stuff was changed) |