[llvm] r332192 - Fixing build bot error: adding const qualifiers to std::sort lambda.

Puyan Lotfi via llvm-commits llvm-commits at lists.llvm.org
Sat May 12 23:50:55 PDT 2018


Author: zer0
Date: Sat May 12 23:50:55 2018
New Revision: 332192

URL: http://llvm.org/viewvc/llvm-project?rev=332192&view=rev
Log:
Fixing build bot error: adding const qualifiers to std::sort lambda.

Errors were not reproducible on clang-6.0 on ubuntu 16.04.

Modified:
    llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp

Modified: llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp?rev=332192&r1=332191&r2=332192&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp Sat May 12 23:50:55 2018
@@ -135,7 +135,7 @@ rescheduleLexographically(std::vector<Ma
   }
 
   std::sort(StringInstrMap.begin(), StringInstrMap.end(),
-            [](StringInstrPair &a, StringInstrPair &b) {
+            [](const StringInstrPair &a, const StringInstrPair &b) -> bool {
               return (a.first < b.first);
             });
 




More information about the llvm-commits mailing list