mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:21:34 +08:00
[Core] Fix unstable sort for unordered atoms.
llvm-svn: 191867
This commit is contained in:
@@ -527,7 +527,7 @@ void LayoutPass::perform(MutableFile &mergedFile) {
|
||||
});
|
||||
|
||||
// sort the atoms
|
||||
std::sort(atomRange.begin(), atomRange.end(), _compareAtoms);
|
||||
std::stable_sort(atomRange.begin(), atomRange.end(), _compareAtoms);
|
||||
|
||||
DEBUG({
|
||||
llvm::dbgs() << "sorted atoms:\n";
|
||||
|
||||
Reference in New Issue
Block a user