Fixes typos/out of date comments, switches to unstable sort

This commit is contained in:
Mason Remaley
2026-04-12 14:09:22 -07:00
parent df2413cf69
commit e968e6d004
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -606,8 +606,6 @@ fn waitForOtherThreadToFinishPanicking() void {
}
}
/// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation.
pub const StackTrace = struct {
/// Each element is the "return address" of a function call, meaning the instruction address
/// which control flow will return to when the function returns.
+2 -2
View File
@@ -518,7 +518,7 @@ pub const BinaryAnnotation = union(enum) {
}
}
// Adapated from:
// Adapted from:
// https://github.com/microsoft/microsoft-pdb/blob/805655a28bd8198004be2ac27e6e0290121a5e89/include/cvinfo.h#L4942
pub fn takePackedU32(reader: *Io.Reader) Io.Reader.Error!u32 {
const b0: u32 = try reader.takeByte();
@@ -866,7 +866,7 @@ pub fn getModule(self: *Pdb, index: usize) !?*Module {
}
}
std.mem.sort(InlineeSourceLine, inlinee_source_lines.items, {}, InlineeSourceLine.lessThan);
std.mem.sortUnstable(InlineeSourceLine, inlinee_source_lines.items, {}, InlineeSourceLine.lessThan);
break :b try inlinee_source_lines.toOwnedSlice(gpa);
};
errdefer gpa.free(mod.inlinee_source_lines);