summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen')
-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