[compiler-rt] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 20 Mar 2018 00:44:59 +0000 (00:44 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 20 Mar 2018 00:44:59 +0000 (00:44 +0000)
commitdc09ebf71b5ad1ac45340ccd24cbb8c2ecffb762
treeb11c269f99f2babbb93a34e4b4c06e22f4ab8c85
parent0d03881eb57e30f99ad3ab811842c90a7a0d8748
[compiler-rt] Change std::sort to llvm::sort in response to r327219

Summary:
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.

Reviewers: kcc, rsmith, RKSimon, eugenis

Reviewed By: RKSimon

Subscribers: efriedma, kubamracek, dberris, #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D44360

llvm-svn: 327929
compiler-rt/lib/asan/tests/asan_mem_test.cc
compiler-rt/lib/fuzzer/FuzzerCorpus.h
compiler-rt/lib/fuzzer/FuzzerMerge.cpp
compiler-rt/lib/sanitizer_common/tests/sanitizer_common_test.cc
compiler-rt/lib/sanitizer_common/tests/sanitizer_linux_test.cc