[lld-macho][nfc] minor clean up, follow up to D98559
Differential Revision: https://reviews.llvm.org/D99210
GitOrigin-RevId: 1bc33eb6a32bdb193a8b838df823b4563450f6b3
diff --git a/MachO/DriverUtils.cpp b/MachO/DriverUtils.cpp
index a12e1c5..49bd83e 100644
--- a/MachO/DriverUtils.cpp
+++ b/MachO/DriverUtils.cpp
@@ -284,8 +284,8 @@
inputNames.reserve(inputs.size());
for (InputFile *f : inputs)
inputNames.push_back(f->getName());
- llvm::sort(inputNames,
- [](const StringRef &a, const StringRef &b) { return a < b; });
+ llvm::sort(inputNames);
+
for (const StringRef &in : inputNames)
addDep(DepOpCode::Input, in);
diff --git a/test/MachO/dependency-info.s b/test/MachO/dependency-info.s
index f76605c..c2638d3 100644
--- a/test/MachO/dependency-info.s
+++ b/test/MachO/dependency-info.s
@@ -1,7 +1,4 @@
# REQUIRES: x86
-## FIXME: Paths on windows have both `\` and '/', as a result, they are in a different
-## order when sorted. Maybe create a separate test for that?
-# UNSUPPORTED: system-windows
#
# RUN: rm -rf %t
# RUN: split-file %s %t