Inline heap_allocator resize logic on *nix platforms

This commit is contained in:
gingerBill
2021-08-07 15:05:46 +01:00
parent 5453e92bcb
commit 16eeae36d7
4 changed files with 88 additions and 61 deletions
+1 -1
View File
@@ -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