diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-13 01:30:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-13 01:30:30 +0100 |
| commit | 042dbda47f8a428c1be2b1af2937f0cbff109c11 (patch) | |
| tree | 9185639a96d96da650ab290961531036f6ec4e8c /src/llvm_backend.cpp | |
| parent | 2d7aea79b94721362f4fc5285c2a99ab37f52a58 (diff) | |
Replace many uses of `heap_allocator()` with `permanent_allocator()`
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 3e8498776..8ba0a3b87 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -1687,7 +1687,7 @@ void lb_generate_code(lbGenerator *gen) { array_add(&gen->output_object_paths, filepath_obj); array_add(&gen->output_temp_paths, filepath_ll); - auto *wd = gb_alloc_item(heap_allocator(), lbLLVMEmitWorker); + auto *wd = gb_alloc_item(permanent_allocator(), lbLLVMEmitWorker); wd->target_machine = target_machines[j]; wd->code_gen_file_type = code_gen_file_type; wd->filepath_obj = filepath_obj; |