mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-16 16:01:26 -07:00
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.
This commit is contained in:
@@ -783,8 +783,7 @@ gb_internal void lb_end_procedure_body(lbProcedure *p) {
|
||||
|
||||
p->curr_block = nullptr;
|
||||
p->state_flags = 0;
|
||||
}
|
||||
gb_internal void lb_end_procedure(lbProcedure *p) {
|
||||
|
||||
LLVMDisposeBuilder(p->builder);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user