Give alias types a unique encoding

The encoding is used as the def name and it needs to be different than
the alias target or the linker throws it away as an external def.
This commit is contained in:
Bill Currie 2020-02-19 20:56:01 +09:00
parent 6bc803c72d
commit 6a70d2e362

View file

@ -654,7 +654,9 @@ encode_type (dstring_t *encoding, const type_t *type)
dasprintf (encoding, "]");
return;
case ty_alias:
dasprintf (encoding, "{%s>", type->name);
encode_type (encoding, type->t.alias.type);
dasprintf (encoding, "}");
return;
case ty_none:
switch (type->type) {