[llvm] r286882 - ARM: try to fix GCC 4.8 compilation again after r286881.
Tim Northover via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 12:31:53 PST 2016
Author: tnorthover
Date: Mon Nov 14 14:31:53 2016
New Revision: 286882
URL: http://llvm.org/viewvc/llvm-project?rev=286882&view=rev
Log:
ARM: try to fix GCC 4.8 compilation again after r286881.
Modified:
llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp?rev=286882&r1=286881&r2=286882&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp Mon Nov 14 14:31:53 2016
@@ -930,7 +930,8 @@ void ARMFrameLowering::emitPushInst(Mach
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);
});
More information about the llvm-commits
mailing list