harec

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

commit b61a252dc39f4accb22a2a1196c2b82b4863f964
parent f0d296ca337d590353a8fed3f48ab05c0590ea18
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  6 Mar 2021 12:14:41 -0500

gen: implement char data items

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

diff --git a/src/gen.c b/src/gen.c @@ -2611,6 +2611,7 @@ gen_data_item(struct gen_context *ctx, struct expression *expr, switch (type->storage) { case STORAGE_I8: case STORAGE_U8: + case STORAGE_CHAR: item->type = QD_VALUE; constw(&item->value, (uint8_t)constant->uval); item->value.type = &qbe_byte; @@ -2786,7 +2787,6 @@ gen_data_item(struct gen_context *ctx, struct expression *expr, case STORAGE_UNION: assert(0); // TODO case STORAGE_ALIAS: - case STORAGE_CHAR: case STORAGE_FCONST: case STORAGE_FUNCTION: case STORAGE_ICONST: