mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
[lld/mac] Fix start-stop.s test with expensive checks enabled
See e.g. https://lab.llvm.org/buildbot/#/builders/16/builds/14317 Not 100% sure why this fails yet, but this fixes it. Let's get the bots green again first :) Differential Revision: https://reviews.llvm.org/D106711
This commit is contained in:
parent
c2c43132f6
commit
04f5eb407c
@ -146,10 +146,8 @@ void OutputSegment::sortOutputSections() {
|
||||
}
|
||||
|
||||
void macho::sortOutputSegments() {
|
||||
// sort() instead of stable_sort() is fine because segmentOrder() is
|
||||
// name-based and getOrCreateOutputSegment() makes there's only a single
|
||||
// segment for every name.
|
||||
llvm::sort(outputSegments, compareByOrder<OutputSegment *>(segmentOrder));
|
||||
llvm::stable_sort(outputSegments,
|
||||
compareByOrder<OutputSegment *>(segmentOrder));
|
||||
}
|
||||
|
||||
static DenseMap<StringRef, OutputSegment *> nameToOutputSegment;
|
||||
|
Loading…
Reference in New Issue
Block a user