summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-11-14 20:31:53 +0000
committerTim Northover <tnorthover@apple.com>2016-11-14 20:31:53 +0000
commit3d38c38826299cbbfd480533eac7ef78ed5340a7 (patch)
tree4e1a87a21be02b384160e7868727c00e7e3e9ee0 /llvm/lib
parent46a6f0fbf0f4d30ee0a558346f4db77a23864ddf (diff)
downloadbcm5719-llvm-3d38c38826299cbbfd480533eac7ef78ed5340a7.tar.gz
bcm5719-llvm-3d38c38826299cbbfd480533eac7ef78ed5340a7.zip
ARM: try to fix GCC 4.8 compilation again after r286881.
llvm-svn: 286882
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMFrameLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 13e66f5d1d1..dc5f8f37991 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -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);
});
OpenPOWER on IntegriCloud