Skip to content

Commit ba27d3d

Browse files
committed
Fix gimli assertion for anonymous sources
1 parent fd6e372 commit ba27d3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/debuginfo/line_info.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ impl DebugContext {
117117
}
118118
filename => {
119119
// For anonymous sources, create an empty directory instead of using the default
120-
let empty_dir = LineString::new(b"", line_program.encoding(), line_strings);
121-
let dir_id = line_program.add_directory(empty_dir);
120+
let dir_id = line_program.default_directory();
122121

123122
let dummy_file_name = LineString::new(
124123
filename.prefer_remapped_unconditionally().to_string().into_bytes(),

0 commit comments

Comments
 (0)