1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[MDBuilder] Don't use stable sort for sorting integers.

This commit is contained in:
Benjamin Kramer 2020-03-28 21:16:51 +01:00
parent 74ebf8606d
commit e937c2bb41

View File

@ -68,7 +68,7 @@ MDNode *MDBuilder::createFunctionEntryCount(
Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count)));
if (Imports) {
SmallVector<GlobalValue::GUID, 2> OrderID(Imports->begin(), Imports->end());
llvm::stable_sort(OrderID);
llvm::sort(OrderID);
for (auto ID : OrderID)
Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID)));
}