diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-07 11:05:38 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-07 11:05:38 +0000 |
| commit | abaa906f34dbf81f5abe275b34fc8ef7a0bf9b3d (patch) | |
| tree | c791bd5cec34472b3ea3da03cb968927f3c57cad /src | |
| parent | fa093d9b09e32a697783020e9d84c76932b1679d (diff) | |
Fix `lb_hasher_proc_for_type`
Diffstat (limited to 'src')
| -rw-r--r-- | src/llvm_backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index c3c4f7152..fa76ac22f 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -334,7 +334,7 @@ gb_internal void lb_add_callsite_force_inline(lbProcedure *p, lbValue ret_value) gb_internal lbValue lb_hasher_proc_for_type(lbModule *m, Type *type) { type = core_type(type); - GB_ASSERT_MSG(is_type_valid_for_keys(type), "%s", type_to_string(type)); + GB_ASSERT_MSG(is_type_comparable(type), "%s", type_to_string(type)); Type *pt = alloc_type_pointer(type); |