| ... | @@ -1213,7 +1213,7 @@ pub const DebugInfo = struct { | ... | @@ -1213,7 +1213,7 @@ pub const DebugInfo = struct { |
| 1213 | const obj_di = try self.allocator.create(ModuleDebugInfo); | 1213 | const obj_di = try self.allocator.create(ModuleDebugInfo); |
| 1214 | errdefer self.allocator.destroy(obj_di); | 1214 | errdefer self.allocator.destroy(obj_di); |
| 1215 | | 1215 | |
| 1216 | obj_di.* = openCoffDebugInfo(self.allocator, name_buffer[0..:0]) catch |err| switch (err) { | 1216 | obj_di.* = openCoffDebugInfo(self.allocator, name_buffer[0 .. len + 4 :0]) catch |err| switch (err) { |
| 1217 | error.FileNotFound => return error.MissingDebugInfo, | 1217 | error.FileNotFound => return error.MissingDebugInfo, |
| 1218 | else => return err, | 1218 | else => return err, |
| 1219 | }; | 1219 | }; |