diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-05-07 14:38:40 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-05-07 14:39:51 +0200 |
| commit | ad4866653a05a2850d60616b6d7458d4718a2c83 (patch) | |
| tree | 1e71002bdd100e07b8915b0199135af6d8bf806d /src/llvm_backend.cpp | |
| parent | 90a30a145af7a8f75f95fe38817667efb00452db (diff) | |
fix disposing builder when not created
Fixes #5128
p->builder is created in lb_begin_procedure_body, but that isn't called
if there is no body, and we were still calling dispose at that point.
Moved it into lb_end_procedure_body to match.
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 2f861573a..fd10cd5c1 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -2185,7 +2185,6 @@ gb_internal void lb_generate_procedure(lbModule *m, lbProcedure *p) { p->is_done = true; m->curr_procedure = nullptr; } - lb_end_procedure(p); // Add Flags if (p->entity && p->entity->kind == Entity_Procedure && p->entity->Procedure.is_memcpy_like) { |