| ... | @@ -518,7 +518,7 @@ pub const BinaryAnnotation = union(enum) { | ... | @@ -518,7 +518,7 @@ pub const BinaryAnnotation = union(enum) { |
| 518 | } | 518 | } |
| 519 | } | 519 | } |
| 520 | | 520 | |
| 521 | // Adapated from: | 521 | // Adapted from: |
| 522 | // https://github.com/microsoft/microsoft-pdb/blob/805655a28bd8198004be2ac27e6e0290121a5e89/include/cvinfo.h#L4942 | 522 | // https://github.com/microsoft/microsoft-pdb/blob/805655a28bd8198004be2ac27e6e0290121a5e89/include/cvinfo.h#L4942 |
| 523 | pub fn takePackedU32(reader: *Io.Reader) Io.Reader.Error!u32 { | 523 | pub fn takePackedU32(reader: *Io.Reader) Io.Reader.Error!u32 { |
| 524 | const b0: u32 = try reader.takeByte(); | 524 | const b0: u32 = try reader.takeByte(); |
| ... | @@ -866,7 +866,7 @@ pub fn getModule(self: *Pdb, index: usize) !?*Module { | ... | @@ -866,7 +866,7 @@ pub fn getModule(self: *Pdb, index: usize) !?*Module { |
| 866 | } | 866 | } |
| 867 | } | 867 | } |
| 868 | | 868 | |
| 869 | std.mem.sort(InlineeSourceLine, inlinee_source_lines.items, {}, InlineeSourceLine.lessThan); | 869 | std.mem.sortUnstable(InlineeSourceLine, inlinee_source_lines.items, {}, InlineeSourceLine.lessThan); |
| 870 | break :b try inlinee_source_lines.toOwnedSlice(gpa); | 870 | break :b try inlinee_source_lines.toOwnedSlice(gpa); |
| 871 | }; | 871 | }; |
| 872 | errdefer gpa.free(mod.inlinee_source_lines); | 872 | errdefer gpa.free(mod.inlinee_source_lines); |