Minimize add_type_info_type usage

This commit is contained in:
gingerBill
2023-01-03 17:26:05 +00:00
parent 2720e98127
commit 855ebceadc
3 changed files with 10 additions and 8 deletions

View File

@@ -8779,8 +8779,8 @@ gb_internal ExprKind check_type_assertion(CheckerContext *c, Operand *o, Ast *no
return kind;
}
add_type_info_type(c, o->type);
add_type_info_type(c, bsrc->Union.variants[0]);
// add_type_info_type(c, o->type);
// add_type_info_type(c, bsrc->Union.variants[0]);
o->type = bsrc->Union.variants[0];
o->mode = Addressing_OptionalOk;
@@ -8812,8 +8812,8 @@ gb_internal ExprKind check_type_assertion(CheckerContext *c, Operand *o, Ast *no
return kind;
}
add_type_info_type(c, o->type);
add_type_info_type(c, t);
// add_type_info_type(c, o->type);
// add_type_info_type(c, t);
o->type = t;
o->mode = Addressing_OptionalOk;