1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

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
This commit is contained in:
Puyan Lotfi 2018-05-13 06:50:55 +00:00
parent 497c6e7bcc
commit 3ad9da4f47

View File

@ -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);
});