asserts in emitcon()

This commit is contained in:
Quentin Carbonneaux 2026-04-28 16:23:47 +02:00
parent a9796317aa
commit b8b95a99df

View File

@ -195,11 +195,13 @@ emitcon(Con *con, E *e)
case CAddr:
l = str(con->sym.id);
p = l[0] == '"' ? "" : T.assym;
if (con->sym.type & SThr) {
if (con->sym.type == SThr) {
assert(!T.apple);
fprintf(e->f, "%%fs:%s%s@tpoff", p, l);
} else
} else {
assert(con->sym.type == SGlo);
fprintf(e->f, "%s%s", p, l);
}
if (con->bits.i)
fprintf(e->f, "%+"PRId64, con->bits.i);
break;