harec

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

commit a248d3a628160683b68cdd2494c60363902c355c
parent 4285391593019cc791e93cfbb9c473860b74f408
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 13 Feb 2021 11:53:07 -0500

gen: don't de-alias for type assertion

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

diff --git a/src/gen.c b/src/gen.c @@ -1043,7 +1043,7 @@ gen_type_assertion(struct gen_context *ctx, { // XXX: ARCH pushc(ctx->current, "type assertion"); - const struct type *want = type_dealias(expr->cast.secondary); + const struct type *want = expr->cast.secondary; struct qbe_value tag = {0}, id = {0}, result = {0}; gen_temp(ctx, &tag, &qbe_word, "tag.%d"); pushi(ctx->current, &tag, Q_LOADUW, in, NULL);