From 36764779cff8b36512ccf6068579ea7bde87279a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 23 Jan 2023 14:09:55 +0000 Subject: Add extra `add_type_info_type` calls --- src/check_stmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 21df1d0ea..346d45f5b 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1134,7 +1134,7 @@ gb_internal void check_type_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_ check_expr(ctx, &x, rhs); check_assignment(ctx, &x, nullptr, str_lit("type switch expression")); - // add_type_info_type(ctx, x.type); + add_type_info_type(ctx, x.type); TypeSwitchKind switch_kind = check_valid_type_switch_type(x.type); if (switch_kind == TypeSwitch_Invalid) { @@ -1225,7 +1225,7 @@ gb_internal void check_type_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_ continue; } case_type = y.type; - // add_type_info_type(ctx, y.type); + add_type_info_type(ctx, y.type); } else if (switch_kind == TypeSwitch_Any) { case_type = y.type; add_type_info_type(ctx, y.type); -- cgit v1.2.3