summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@codeaurora.org>2018-04-07 01:29:45 +0000
committerMandeep Singh Grang <mgrang@codeaurora.org>2018-04-07 01:29:45 +0000
commit13e70cb1811e8f7c0cacc16a272c95b4634490f9 (patch)
tree69c1f4c8124b9068c98b107b1cdd2f8881b9a20a /llvm/utils
parentb12cc2003a2375cd3e207bb831930719d11521ab (diff)
downloadbcm5719-llvm-13e70cb1811e8f7c0cacc16a272c95b4634490f9.tar.gz
bcm5719-llvm-13e70cb1811e8f7c0cacc16a272c95b4634490f9.zip
[unittests] 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 the comments section in D44363 for a list of all the required patches. llvm-svn: 329475
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h b/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
index 749a30e4e6d..9f001c9e63c 100644
--- a/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
+++ b/llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
@@ -2654,7 +2654,7 @@ class WhenSortedByMatcher {
LhsStlContainerReference lhs_stl_container = LhsView::ConstReference(lhs);
::std::vector<LhsValue> sorted_container(lhs_stl_container.begin(),
lhs_stl_container.end());
- ::std::sort(
+ ::llvm::sort(
sorted_container.begin(), sorted_container.end(), comparator_);
if (!listener->IsInterested()) {
OpenPOWER on IntegriCloud