We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25d7a8 commit 84a796dCopy full SHA for 84a796d
llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
@@ -203,9 +203,8 @@ Error MachOLinkGraphBuilder::createNormalizedSections() {
203
llvm::sort(Sections,
204
[](const NormalizedSection *LHS, const NormalizedSection *RHS) {
205
assert(LHS && RHS && "Null section?");
206
- if (LHS->Address != RHS->Address)
207
- return LHS->Address < RHS->Address;
208
- return LHS->Size < RHS->Size;
+ return std::tie(LHS->Address, LHS->Size) <
+ std::tie(RHS->Address, RHS->Size);
209
});
210
211
for (unsigned I = 0, E = Sections.size() - 1; I != E; ++I) {
0 commit comments