Browse Source

[XRay] 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330561 91177308-0d34-0410-b5e6-96231b3b80d8
Mandeep Singh Grang 7 years ago
parent
commit
1dfd6cdd38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Driver/XRayArgs.cpp

+ 1 - 1
lib/Driver/XRayArgs.cpp

@@ -163,7 +163,7 @@ XRayArgs::XRayArgs(const ToolChain &TC, const ArgList &Args) {
       }
 
     // Then we want to sort and unique the modes we've collected.
-    std::sort(Modes.begin(), Modes.end());
+    llvm::sort(Modes.begin(), Modes.end());
     Modes.erase(std::unique(Modes.begin(), Modes.end()), Modes.end());
   }
 }