From 1a49c86154b28e0f5bd7a8e05a2778f5e2f04855 Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Sat, 1 Jun 2024 09:30:28 -0600 Subject: [PATCH] Finalize all debug info builders --- bootstrap/compiler.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/compiler.zig b/bootstrap/compiler.zig index a91d270..146f29d 100644 --- a/bootstrap/compiler.zig +++ b/bootstrap/compiler.zig @@ -2887,9 +2887,9 @@ fn worker_thread(thread_index: u32, cpu_count: *u32) void { } if (debug_info) { - const file_index = thread.functions.slice()[0].declaration.file; - const llvm_file = thread.debug_info_file_map.get_pointer(file_index).?; - llvm_file.builder.finalize(); + for (thread.debug_info_file_map.values()) |v| { + v.builder.finalize(); + } } const verify_module = true;