aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_expr.cpp
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2023-12-20 00:56:28 +0100
committerLaytan Laats <laytanlaats@hotmail.com>2023-12-20 00:56:36 +0100
commit09db245e4c564100f2f87360ce4f194de3549c7b (patch)
tree7bf027cca06ec7d7f9350dce421bf93972095b32 /src/llvm_backend_expr.cpp
parentb89fc9191cb1f1623098a46184f33a012091a098 (diff)
fix wrong string type assert
Fixes #2846
Diffstat (limited to 'src/llvm_backend_expr.cpp')
-rw-r--r--src/llvm_backend_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index d1176f896..4675e203b 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -4105,7 +4105,7 @@ gb_internal lbAddr lb_build_addr_slice_expr(lbProcedure *p, Ast *expr) {
}
case Type_Basic: {
- GB_ASSERT_MSG(type == t_string, "got %s", type_to_string(type));
+ GB_ASSERT_MSG(are_types_identical(type, t_string), "got %s", type_to_string(type));
lbValue len = lb_string_len(p, base);
if (high.value == nullptr) high = len;