From 662c7b1e7139486373ecf74479659ff555c59cd2 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 7 Aug 2021 14:39:26 +0100 Subject: Minor clean-up --- src/llvm_backend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/llvm_backend.cpp') 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; } -- cgit v1.2.3