summaryrefslogtreecommitdiff
path: root/identifiers.c
diff options
context:
space:
mode:
Diffstat (limited to 'identifiers.c')
-rw-r--r--identifiers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/identifiers.c b/identifiers.c
index 60ab30e..7d975fe 100644
--- a/identifiers.c
+++ b/identifiers.c
@@ -152,7 +152,9 @@ static Identifier ident_get(Identifiers *ids, char *s) {
/* translate and insert if not already there */
static inline Identifier ident_translate_forced(Identifier i, Identifiers *to_idents) {
char *p = i->str;
- return ident_insert(to_idents, &p);
+ Identifier translated = ident_insert(to_idents, &p);
+ assert(translated->idents == to_idents);
+ return translated;
}
/* translate but don't add it if it's not there */