harec

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

commit d0cf23e12a1f1727f0d81ab045439e658411456a
parent cffdad98039c202e0c2e39bbf952dfdf6b26f0ab
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  5 Aug 2021 09:50:14 +0200

gen: simplify out temp allocation for if exprs

Signed-off-by: Drew DeVault <sir@cmpwn.com>

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

diff --git a/src/gen.c b/src/gen.c @@ -537,7 +537,7 @@ gen_expr_if_with(struct gen_context *ctx, struct gen_value *out) { struct gen_value gvout = gv_void; - if (!out && type_dealias(expr->result)->storage != STORAGE_VOID) { + if (!out) { gvout = mktemp(ctx, expr->result, ".%d"); }