From 0ff8dbe4d6cf215b92f1e8d8a6d1920c49daa126 Mon Sep 17 00:00:00 2001 From: Puyan Lotfi Date: Sun, 13 May 2018 06:50:55 +0000 Subject: [PATCH] Fixing build bot error: adding const qualifiers to std::sort lambda. Errors were not reproducible on clang-6.0 on ubuntu 16.04. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332192 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MIRCanonicalizerPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/MIRCanonicalizerPass.cpp b/lib/CodeGen/MIRCanonicalizerPass.cpp index a68ea1934ae..a04e9942131 100644 --- a/lib/CodeGen/MIRCanonicalizerPass.cpp +++ b/lib/CodeGen/MIRCanonicalizerPass.cpp @@ -135,7 +135,7 @@ rescheduleLexographically(std::vector instructions, } std::sort(StringInstrMap.begin(), StringInstrMap.end(), - [](StringInstrPair &a, StringInstrPair &b) { + [](const StringInstrPair &a, const StringInstrPair &b) -> bool { return (a.first < b.first); }); -- 2.11.0