harec

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

commit 6ede325e1b55139e25b2426421dc659183a1d8f9
parent 1832fadc7ff83a456e4213e34bba0972c82ec17f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri,  5 Feb 2021 10:45:56 -0500

gen: don't abort on type promotion

This is going to be lowed by cast anyway.

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

diff --git a/src/gen.c b/src/gen.c @@ -812,7 +812,6 @@ gen_expr_binarithm(struct gen_context *ctx, const struct qbe_type *rtype = qtype_for_type(ctx, expr->binarithm.rvalue->result, false); const struct qbe_type *etype = qtype_for_type(ctx, expr->result, false); - assert(ltype == rtype); // TODO: Type promotion if (expr->binarithm.op == BIN_LAND || expr->binarithm.op == BIN_LOR) { struct qbe_statement rlabel = {0}, slabel = {0};