From: Puyan Lotfi Date: Sun, 13 May 2018 06:50:55 +0000 (+0000) Subject: Fixing build bot error: adding const qualifiers to std::sort lambda. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71540f51976302a702eb6fee58a6088661fac8c5;p=platform%2Fupstream%2Fllvm.git Fixing build bot error: adding const qualifiers to std::sort lambda. Errors were not reproducible on clang-6.0 on ubuntu 16.04. llvm-svn: 332192 --- diff --git a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp index a68ea19..a04e994 100644 --- a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp +++ b/llvm/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); });