summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2018-05-13 06:50:55 +0000
committerPuyan Lotfi <puyan@puyan.org>2018-05-13 06:50:55 +0000
commit71540f51976302a702eb6fee58a6088661fac8c5 (patch)
treebc916f3848ffb1e51cbb29c5f3556c540b1eb16a
parent380a6f55ffd26369ae8a5167239e2c5305ed96f4 (diff)
downloadbcm5719-llvm-71540f51976302a702eb6fee58a6088661fac8c5.tar.gz
bcm5719-llvm-71540f51976302a702eb6fee58a6088661fac8c5.zip
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
-rw-r--r--llvm/lib/CodeGen/MIRCanonicalizerPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
index a68ea1934ae..a04e9942131 100644
--- a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
+++ b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
@@ -135,7 +135,7 @@ rescheduleLexographically(std::vector<MachineInstr *> instructions,
}
std::sort(StringInstrMap.begin(), StringInstrMap.end(),
- [](StringInstrPair &a, StringInstrPair &b) {
+ [](const StringInstrPair &a, const StringInstrPair &b) -> bool {
return (a.first < b.first);
});
OpenPOWER on IntegriCloud