OSDN Git Service

[unittests] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Sat, 7 Apr 2018 01:29:45 +0000 (01:29 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Sat, 7 Apr 2018 01:29:45 +0000 (01:29 +0000)
commit77a1dcd15bc5410807d3820045211c51b8056ffc
tree64e35cb07493f3982b9a450b33e54cd49251365d
parent141766acc5e11774a522435e68da91cce5042167
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329475 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ADT/STLExtrasTest.cpp
unittests/ADT/SmallPtrSetTest.cpp
unittests/ADT/StringMapTest.cpp
unittests/Analysis/LazyCallGraphTest.cpp
unittests/ProfileData/InstrProfTest.cpp
unittests/Support/Path.cpp
utils/unittest/googlemock/include/gmock/gmock-matchers.h