summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse/stab.c b/parse/stab.c
index 54ccfaa..491e009 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -631,6 +631,7 @@ updatens(Stab *st, char *name)
{
void **k;
size_t i, nk;
+ Traitdefn *tr;
Tydefn *td;
if (st->name)
@@ -653,6 +654,13 @@ updatens(Stab *st, char *name)
}
free(k);
+ k = htkeys(st->tr, &nk);
+ for (i = 0; i < nk; i++) {
+ tr = htget(st->tr, k[i]);
+ setns(tr->name, name);
+ }
+ free(k);
+
k = htkeys(st->uc, &nk);
for (i = 0; i < nk; i++)
setns(k[i], name);