mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
Error properly on strings.
Don't print junk when we don't have 'b' for a string.
This commit is contained in:
parent
542d89bcd5
commit
b65a6892dd
@ -559,6 +559,8 @@ emitdat(Dat *d, FILE *f)
|
||||
}
|
||||
/* fallthrough */
|
||||
default:
|
||||
if (d->isstr)
|
||||
err("strings only supported for 'b' currently");
|
||||
if (d->isref)
|
||||
fprintf(f, "%s %s+%"PRId64"\n", dtoa[d->type], d->u.ref.nam, d->u.ref.off);
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user