From ed5a4afc8c308c6db12d29d89b70738033ff46ec Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 13 Jul 2021 15:54:56 +0100 Subject: Temporarily disable `-threaded-checker`; Restructure the untyped-expr-info system to be much more thread-friendly --- 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 1d7cf3cce..8a7555945 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1103,7 +1103,7 @@ void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) { if (y.mode != Addressing_Constant) { continue; } - update_expr_type(ctx, z.expr, x.type, !is_type_untyped(x.type)); + update_untyped_expr_type(ctx, z.expr, x.type, !is_type_untyped(x.type)); add_constant_switch_case(ctx, &seen, y); } } @@ -1706,7 +1706,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { Operand *o = &operands[i]; check_assignment(ctx, o, e->type, str_lit("return statement")); if (is_type_untyped(o->type)) { - update_expr_type(ctx, o->expr, e->type, true); + update_untyped_expr_type(ctx, o->expr, e->type, true); } } } -- cgit v1.2.3