From 16eeae36d719a8499107924c2e24b3c84feee579 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 7 Aug 2021 15:05:46 +0100 Subject: Inline heap_allocator resize logic on *nix platforms --- src/llvm_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/llvm_backend.cpp') diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 2267907a1..9f79c5908 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -538,7 +538,7 @@ lbValue lb_const_hash(lbModule *m, lbValue key, Type *key_type) { i64 length = LLVMConstIntGetSExtValue(len); char const *text = nullptr; if (false && length != 0) { - if (LLVMGetConstOpcode(data) != LLVMGetElementPtr) { + if (LLVMGetConstOpcode(data) != LLVMGetElementPtr) { return {}; } // TODO(bill): THIS IS BROKEN! THIS NEEDS FIXING :P -- cgit v1.2.3