authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-27 17:05:55+01:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-28 14:46:43+01:00
log5c2e463ecd9070638fa623b3e5856188e4550a78
tree093dc31173822949d16b8e43aacab8018d28ba15
parent40f99862e1251dc0d4ef915308d8f0985d37fb2c

LLVM: Don't create a debug lexical block when inlining


1 files changed, 1 insertions(+), 8 deletions(-)

src/codegen/llvm.zig+1-8
......@@ -6637,7 +6637,7 @@ pub const FuncGen = struct {
66376637 .return_type = .void_type,
66386638 });
66396639
6640 const subprogram = try o.builder.debugSubprogram(
6640 self.scope = try o.builder.debugSubprogram(
66416641 self.file,
66426642 try o.builder.metadataString(zcu.intern_pool.stringToSlice(decl.name)),
66436643 try o.builder.metadataString(zcu.intern_pool.stringToSlice(fqn)),
......@@ -6655,13 +6655,6 @@ pub const FuncGen = struct {
66556655 o.debug_compile_unit,
66566656 );
66576657
6658 const lexical_block = try o.builder.debugLexicalBlock(
6659 subprogram,
6660 self.file,
6661 line_number,
6662 1,
6663 );
6664 self.scope = lexical_block;
66656658 self.base_line = decl.src_line;
66666659 const inlined_at_location = try self.wip.debug_location.toMetadata(&o.builder);
66676660 self.wip.debug_location = .{