diff options
| author | gingerBill <bill@gingerbill.org> | 2023-12-21 17:05:31 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-12-21 17:05:31 +0000 |
| commit | 464a675adcc7236afd4cd86002dfda2360ec9545 (patch) | |
| tree | 6bf9c4411b1581483745f024f8f86ea1fe30b6e9 /src/llvm_backend_expr.cpp | |
| parent | 55f3e99f6330eb3961b35217823cdcc45b9eceb5 (diff) | |
| parent | 49fb0acfc9ebe39706424ed52ef999a4103ec8d5 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 2 |
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; |