From e4a82833275acc166313ff11613bcc748309571a Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 29 Jun 2017 15:48:07 +0100 Subject: Remove `Type` What was I thinking?! --- src/check_stmt.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 8cbbf4c25..33cfd3dfa 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1297,11 +1297,8 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { check_comparison(c, &a1, &b1, op); } else { Operand y = {}; - if (is_operand_a_type_value(x)) { - check_expr_or_type(c, &y, expr); - } else { - check_expr(c, &y, expr); - } + check_expr(c, &y, expr); + if (x.mode == Addressing_Invalid || y.mode == Addressing_Invalid) { continue; -- cgit v1.2.3