summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@codeaurora.org>2018-04-05 21:52:24 +0000
committerMandeep Singh Grang <mgrang@codeaurora.org>2018-04-05 21:52:24 +0000
commitf3555650bd5219bf30cab707ff2e1d6da5628cd3 (patch)
treee3639d29518621a22ca4cb556a2f1d9f67804775 /llvm/lib/IR/Attributes.cpp
parentc9c3a004ae06cbbf4a8bd9724ccf0a6272e83ac6 (diff)
downloadbcm5719-llvm-f3555650bd5219bf30cab707ff2e1d6da5628cd3.tar.gz
bcm5719-llvm-f3555650bd5219bf30cab707ff2e1d6da5628cd3.zip
[IR] Change std::sort to llvm::sort in response to r327219
r327219 added wrappers to std::sort which randomly shuffle the container before sorting. This will help in uncovering non-determinism caused due to undefined sorting order of objects having the same key. To make use of that infrastructure we need to invoke llvm::sort instead of std::sort. Note: This patch is one of a series of patches to replace *all* std::sort to llvm::sort. Refer D44363 for a list of all the required patches. llvm-svn: 329353
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index b6c16a8a10c..bd2e6e241f5 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -655,7 +655,7 @@ AttributeSetNode *AttributeSetNode::get(LLVMContext &C,
FoldingSetNodeID ID;
SmallVector<Attribute, 8> SortedAttrs(Attrs.begin(), Attrs.end());
- std::sort(SortedAttrs.begin(), SortedAttrs.end());
+ llvm::sort(SortedAttrs.begin(), SortedAttrs.end());
for (const auto Attr : SortedAttrs)
Attr.Profile(ID);
OpenPOWER on IntegriCloud