diff options
Diffstat (limited to 'llvm/lib/CodeGen/MIRCanonicalizerPass.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MIRCanonicalizerPass.cpp | 2 |
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); }); |

