aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2023-09-28 16:01:26 +0100
committerGitHub <noreply@github.com>2023-09-28 16:01:26 +0100
commit77227c2ff552a81741130ae17d58847c3cfe3ba3 (patch)
treee690e5feae8aad170ce4d18bc11c279ec23cce45 /src/check_expr.cpp
parent2370884722c9638cf0ba3916a8a54247096bb4f6 (diff)
parent2afccd7fbdb3a7c440597356fa4c9d635a06a8d2 (diff)
Merge pull request #2805 from odin-lang/llvm-17
Support LLVM 17.0.1
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 5fab87a7d..968b6ec1e 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3683,18 +3683,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;
}