aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-07 15:05:46 +0100
committergingerBill <bill@gingerbill.org>2021-08-07 15:05:46 +0100
commit16eeae36d719a8499107924c2e24b3c84feee579 (patch)
tree9787df7c5b640d59a85fa72a2aec215e8e8ab4bf /src/llvm_backend.cpp
parent5453e92bcb667b25978502e01419422b88351ad4 (diff)
Inline heap_allocator resize logic on *nix platforms
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp2
1 files changed, 1 insertions, 1 deletions
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