harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6e54e062f35a8b450952d90b3f216042c35a6bfc
parent f0ccdf7ae3e0edae15260cc27e0d24284a46b9c3
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 30 Jan 2021 18:21:44 -0500

qtype: fix void as last member of tagged qtype

Diffstat:
Msrc/qtype.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qtype.c b/src/qtype.c @@ -121,7 +121,7 @@ tagged_qtype(struct gen_context *ctx, const struct type *type) } field->type = qtype_for_type(ctx, tu->type, true); field->count = 1; - if (tu->next) { + if (tu->next && tu->next->type->size != 0) { field->next = xcalloc(1, sizeof(struct qbe_field)); field = field->next; }