mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
Minimize add_type_info_type usage
This commit is contained in:
1 parent
2720e98127
commit
855ebceadc
3 files changed
+10
-8
No files matched your search
+4
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user