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:
parent
74ebf8606d
commit
e937c2bb41
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user