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:
parent
497c6e7bcc
commit
3ad9da4f47
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user