From 963559676e30b44f948b34d0fa1a13bf535c7405 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 21 Sep 2023 16:48:00 +0100 Subject: Fix build times for `-o:` in LLVM-17 --- src/check_expr.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/check_expr.cpp') diff --git a/src/check_expr.cpp b/src/check_expr.cpp index abcb7fd72..700412a86 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -3673,18 +3673,7 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ ExactValue b = y->value; if (!is_type_constant_type(x->type)) { - #if 0 - gbString xt = type_to_string(x->type); - gbString err_str = expr_to_string(node); - error(op, "Invalid type, '%s', for constant binary expression '%s'", xt, err_str); - gb_string_free(err_str); - gb_string_free(xt); - x->mode = Addressing_Invalid; - #else - // NOTE(bill, 2021-04-21): The above is literally a useless error message. - // Why did I add it in the first place?! x->mode = Addressing_Value; - #endif return; } -- cgit v1.2.3