Skip to content

Commit edd6f0c

Browse files
committed
Revert "[ORC] Preserve order of constructors with same priority (#95532)"
The test fails on 32-bit ARMv8: https://lab.llvm.org/buildbot/#/builders/154/builds/170 This reverts commit e5d0627.
1 parent 4b4aaf1 commit edd6f0c

File tree

2 files changed

+1
-174
lines changed

2 files changed

+1
-174
lines changed

llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ GlobalCtorDtorScraper::operator()(ThreadSafeModule TSM,
538538

539539
for (auto E : COrDtors)
540540
InitsOrDeInits.push_back(std::make_pair(E.Func, E.Priority));
541-
llvm::stable_sort(InitsOrDeInits, llvm::less_second());
541+
llvm::sort(InitsOrDeInits, llvm::less_second());
542542

543543
auto *InitOrDeInitFuncEntryBlock =
544544
BasicBlock::Create(Ctx, "entry", InitOrDeInitFunc);

llvm/test/ExecutionEngine/Orc/global-ctor-order.ll

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)