| ... | @@ -413,10 +413,7 @@ pub const DwarfInfo = struct { | ... | @@ -413,10 +413,7 @@ pub const DwarfInfo = struct { |
| 413 | var this_unit_offset: u64 = 0; | 413 | var this_unit_offset: u64 = 0; |
| 414 | | 414 | |
| 415 | while (this_unit_offset < try seekable.getEndPos()) { | 415 | while (this_unit_offset < try seekable.getEndPos()) { |
| 416 | seekable.seekTo(this_unit_offset) catch |err| switch (err) { | 416 | try seekable.seekTo(this_unit_offset); |
| 417 | error.EndOfStream => unreachable, | | |
| 418 | else => return err, | | |
| 419 | }; | | |
| 420 | | 417 | |
| 421 | var is_64: bool = undefined; | 418 | var is_64: bool = undefined; |
| 422 | const unit_length = try readUnitLength(in, di.endian, &is_64); | 419 | const unit_length = try readUnitLength(in, di.endian, &is_64); |
| ... | @@ -520,10 +517,7 @@ pub const DwarfInfo = struct { | ... | @@ -520,10 +517,7 @@ pub const DwarfInfo = struct { |
| 520 | var this_unit_offset: u64 = 0; | 517 | var this_unit_offset: u64 = 0; |
| 521 | | 518 | |
| 522 | while (this_unit_offset < try seekable.getEndPos()) { | 519 | while (this_unit_offset < try seekable.getEndPos()) { |
| 523 | seekable.seekTo(this_unit_offset) catch |err| switch (err) { | 520 | try seekable.seekTo(this_unit_offset); |
| 524 | error.EndOfStream => unreachable, | | |
| 525 | else => return err, | | |
| 526 | }; | | |
| 527 | | 521 | |
| 528 | var is_64: bool = undefined; | 522 | var is_64: bool = undefined; |
| 529 | const unit_length = try readUnitLength(in, di.endian, &is_64); | 523 | const unit_length = try readUnitLength(in, di.endian, &is_64); |