harec

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

commit b17d2cb2cde4607fbd505d3b7179ff1d14298154
parent b3dcc9351c71463382e3b99b6b5c3d4c581d57d8
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  1 Feb 2021 10:05:41 -0500

gen: ensure side-effects of casting void

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

diff --git a/src/gen.c b/src/gen.c @@ -969,6 +969,7 @@ gen_cast_from_tagged(struct gen_context *ctx, const struct type *to) { if (type_dealias(to)->storage == TYPE_STORAGE_VOID) { + gen_expression(ctx, expr->cast.value, NULL); return; }