aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-03 17:26:05 +0000
committergingerBill <bill@gingerbill.org>2023-01-03 17:26:05 +0000
commit855ebceadcc4612a6451f268ab6d6693838ed5f4 (patch)
treeeb26d4b572706c8b242ec437e3b552827f7e312f /src/check_expr.cpp
parent2720e9812778c8cf28ead9c41c46b0d578f6a7b3 (diff)
Minimize `add_type_info_type` usage
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 746a29ce0..5f28504a2 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -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;