ARM: try to fix GCC 4.8 compilation again after r286881.

llvm-svn: 286882
This commit is contained in:
Tim Northover 2016-11-14 20:31:53 +00:00
parent 46a6f0fbf0
commit 3d38c38826
1 changed files with 2 additions and 1 deletions

View File

@ -930,7 +930,8 @@ void ARMFrameLowering::emitPushInst(MachineBasicBlock &MBB,
if (Regs.empty())
continue;
std::sort(Regs.begin(), Regs.end(), [&](RegAndKill &LHS, RegAndKill &RHS) {
std::sort(Regs.begin(), Regs.end(), [&](const RegAndKill &LHS,
const RegAndKill &RHS) {
return TRI.getEncodingValue(LHS.first) < TRI.getEncodingValue(RHS.first);
});