]> granicus.if.org Git - llvm/commitdiff
[llvm] Change 2 instances of std::sort to llvm::sort
authorMandeep Singh Grang <mgrang@codeaurora.org>
Mon, 16 Jul 2018 17:26:37 +0000 (17:26 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Mon, 16 Jul 2018 17:26:37 +0000 (17:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337192 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MIRCanonicalizerPass.cpp
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp

index af6fc117c89d77bfa6579945f7dc105684230b5a..fa43d13b1b85d3c7ae6e273059206515fd7465be 100644 (file)
@@ -134,7 +134,7 @@ rescheduleLexographically(std::vector<MachineInstr *> instructions,
     StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II});
   }
 
-  std::sort(StringInstrMap.begin(), StringInstrMap.end(),
+  llvm::sort(StringInstrMap.begin(), StringInstrMap.end(),
             [](const StringInstrPair &a, const StringInstrPair &b) -> bool {
               return (a.first < b.first);
             });
index 2f0f76b38b7f496150f46c7562d3173fb2a14b09..58efc2256ae1235102bd82ab650b33844a1d6981 100644 (file)
@@ -144,7 +144,7 @@ void GSIHashStreamBuilder::finalizeBuckets(uint32_t RecordZeroOffset) {
     // can properly early-out when it detects the record won't be found.  The
     // algorithm used here corredsponds to the function
     // caseInsensitiveComparePchPchCchCch in the reference implementation.
-    std::sort(Bucket.begin(), Bucket.end(),
+    llvm::sort(Bucket.begin(), Bucket.end(),
               [](const std::pair<StringRef, PSHashRecord> &Left,
                  const std::pair<StringRef, PSHashRecord> &Right) {
                 return gsiRecordLess(Left.first, Right.first);