aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-09-21 16:48:00 +0100
committergingerBill <bill@gingerbill.org>2023-09-21 16:48:00 +0100
commit963559676e30b44f948b34d0fa1a13bf535c7405 (patch)
tree86e1ad66427e4d0b80386da8d12243d624f2be12 /src/check_expr.cpp
parent20ce8c4c5109548ffd161f1affbc8eb264172396 (diff)
Fix build times for `-o:<string>` in LLVM-17
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp11
1 files changed, 0 insertions, 11 deletions
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;
}