diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-07 14:39:26 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-07 14:39:26 +0100 |
| commit | 662c7b1e7139486373ecf74479659ff555c59cd2 (patch) | |
| tree | f6bc84518010f9e6e63525ef7e7bc98923a3f01d /src/llvm_backend.cpp | |
| parent | 571170fd30b116c2b6cf40835c2f4779631741cf (diff) | |
Minor clean-up
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 1adf620e8..2267907a1 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -523,7 +523,7 @@ lbValue lb_const_hash(lbModule *m, lbValue key, Type *key_type) { lbValue hashed_key = {}; - +#if 0 if (lb_is_const(key)) { u64 hash = 0xcbf29ce484222325; if (is_type_cstring(key_type)) { @@ -545,7 +545,7 @@ lbValue lb_const_hash(lbModule *m, lbValue key, Type *key_type) { size_t ulength = 0; text = LLVMGetAsString(data, &ulength); - gb_printf_err("%td %td %s\n", length, ulength, text); + gb_printf_err("%lld %llu %s\n", length, ulength, text); length = gb_min(length, cast(i64)ulength); } hash = fnv64a(text, cast(isize)length); @@ -559,7 +559,7 @@ lbValue lb_const_hash(lbModule *m, lbValue key, Type *key_type) { } hashed_key = lb_const_int(m, t_uintptr, hash); } - +#endif return hashed_key; } |