File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
llvm/lib/ExecutionEngine/JITLink Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -237,12 +237,12 @@ void LinkGraph::dump(raw_ostream &OS) {
237
237
// relevance.
238
238
for (auto &KV : BlockSymbols)
239
239
llvm::sort (KV.second , [](const Symbol *LHS, const Symbol *RHS) {
240
- if (LHS->getOffset () < RHS->getOffset ())
241
- return true ;
242
- if (LHS->getLinkage () < RHS->getLinkage ())
243
- return true ;
244
- if (LHS->getScope () < RHS->getScope ())
245
- return true ;
240
+ if (LHS->getOffset () != RHS->getOffset ())
241
+ return LHS-> getOffset () < RHS-> getOffset () ;
242
+ if (LHS->getLinkage () != RHS->getLinkage ())
243
+ return LHS-> getLinkage () < RHS-> getLinkage () ;
244
+ if (LHS->getScope () != RHS->getScope ())
245
+ return LHS-> getScope () < RHS-> getScope () ;
246
246
if (LHS->hasName ()) {
247
247
if (!RHS->hasName ())
248
248
return true ;
You can’t perform that action at this time.
0 commit comments