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 7d8b4eb commit d07231dCopy full SHA for d07231d
llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
@@ -275,8 +275,9 @@ llvm::Error GsymCreator::finalize(OutputAggregator &Out) {
275
// object.
276
if (!IsSegment) {
277
if (NumBefore > 1) {
278
- // Sort function infos so we can emit sorted functions.
279
- llvm::sort(Funcs);
+ // Sort function infos so we can emit sorted functions. Use stable sort to
+ // ensure determinism.
280
+ llvm::stable_sort(Funcs);
281
std::vector<FunctionInfo> FinalizedFuncs;
282
FinalizedFuncs.reserve(Funcs.size());
283
FinalizedFuncs.emplace_back(std::move(Funcs.front()));
0 commit comments