mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Tests] Stabilize output order maps against incidental changes
The output file map is created in DenseMap order, which is an unordered and "unstable" collection type.
This commit is contained in:
@@ -123,6 +123,7 @@ void OutputFileMap::write(llvm::raw_ostream &os,
|
||||
}
|
||||
|
||||
os << "\n";
|
||||
// DenseMap is unordered. If you write a test, please sort the output.
|
||||
for (auto &typeAndOutputPath : *outputMap) {
|
||||
file_types::ID type = typeAndOutputPath.getFirst();
|
||||
StringRef output = typeAndOutputPath.getSecond();
|
||||
|
||||
Reference in New Issue
Block a user