mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 00:35:10 +00:00
LLVM: Set new debug location after inlining
This commit is contained in:
parent
de536e8473
commit
6cc51d3c33
@ -6625,6 +6625,13 @@ pub const FuncGen = struct {
|
||||
);
|
||||
self.scope = lexical_block;
|
||||
self.base_line = decl.src_line;
|
||||
const inlined_at = self.wip.current_debug_location;
|
||||
self.wip.current_debug_location = try o.builder.debugLocation(
|
||||
line_number,
|
||||
0,
|
||||
self.scope,
|
||||
inlined_at,
|
||||
);
|
||||
return .none;
|
||||
}
|
||||
|
||||
@ -6641,6 +6648,7 @@ pub const FuncGen = struct {
|
||||
const old = self.inlined.pop();
|
||||
self.scope = old.scope;
|
||||
self.base_line = old.base_line;
|
||||
self.wip.current_debug_location = old.location;
|
||||
return .none;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user