diff options
| author | gingerBill <bill@gingerbill.org> | 2024-10-08 11:58:28 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-10-08 11:58:28 +0100 |
| commit | b839d06ac84f193252d5f3e5e76c432f623211bd (patch) | |
| tree | fe5bfb62fdd4be2e70cd9ae5de60cf6d64fc8942 /src/check_expr.cpp | |
| parent | 131e8d41870b091ebb9c506caa97415d5d8a6da9 (diff) | |
| parent | 6bf70b60d67cc21e26b6758a09c800e99a684b1b (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index fc1aa62e6..3b61e049c 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -8795,11 +8795,6 @@ gb_internal ExprKind check_ternary_if_expr(CheckerContext *c, Operand *o, Ast *n return kind; } - if (x.type == nullptr || x.type == t_invalid || - y.type == nullptr || y.type == t_invalid) { - return kind; - } - bool use_type_hint = type_hint != nullptr && (is_operand_nil(x) || is_operand_nil(y)); convert_to_typed(c, &x, use_type_hint ? type_hint : y.type); |