diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-13 15:54:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-13 15:54:56 +0100 |
| commit | ed5a4afc8c308c6db12d29d89b70738033ff46ec (patch) | |
| tree | ae37e745808fcf0ea11f8e344d5256ad865dec8f /src/check_stmt.cpp | |
| parent | f29b51efddcc90c4545119fa77772e4a03e71719 (diff) | |
Temporarily disable `-threaded-checker`; Restructure the untyped-expr-info system to be much more thread-friendly
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } } |