[llvm] r337192 - [llvm] Change 2 instances of std::sort to llvm::sort

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 16 10:26:37 PDT 2018


Author: mgrang
Date: Mon Jul 16 10:26:37 2018
New Revision: 337192

URL: http://llvm.org/viewvc/llvm-project?rev=337192&view=rev
Log:
[llvm] Change 2 instances of std::sort to llvm::sort

Modified:
    llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp
    llvm/trunk/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp

Modified: llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp?rev=337192&r1=337191&r2=337192&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp Mon Jul 16 10:26:37 2018
@@ -134,7 +134,7 @@ rescheduleLexographically(std::vector<Ma
     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);
             });

Modified: llvm/trunk/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp?rev=337192&r1=337191&r2=337192&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp Mon Jul 16 10:26:37 2018
@@ -144,7 +144,7 @@ void GSIHashStreamBuilder::finalizeBucke
     // 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);




More information about the llvm-commits mailing list