@@ -1076,20 +1076,18 @@ void HexagonFrameLowering::insertCFIInstructionsAt(MachineBasicBlock &MBB,
1076
1076
.addCFIIndex (MF.addFrameInst (OffR30));
1077
1077
}
1078
1078
1079
- static Register RegsToMove[] = {
1079
+ static const MCPhysReg RegsToMove[] = {
1080
1080
Hexagon::R1, Hexagon::R0, Hexagon::R3, Hexagon::R2,
1081
1081
Hexagon::R17, Hexagon::R16, Hexagon::R19, Hexagon::R18,
1082
1082
Hexagon::R21, Hexagon::R20, Hexagon::R23, Hexagon::R22,
1083
1083
Hexagon::R25, Hexagon::R24, Hexagon::R27, Hexagon::R26,
1084
1084
Hexagon::D0, Hexagon::D1, Hexagon::D8, Hexagon::D9,
1085
- Hexagon::D10, Hexagon::D11, Hexagon::D12, Hexagon::D13,
1086
- Hexagon::NoRegister
1085
+ Hexagon::D10, Hexagon::D11, Hexagon::D12, Hexagon::D13
1087
1086
};
1088
1087
1089
1088
const std::vector<CalleeSavedInfo> &CSI = MFI.getCalleeSavedInfo ();
1090
1089
1091
- for (unsigned i = 0 ; RegsToMove[i] != Hexagon::NoRegister; ++i) {
1092
- Register Reg = RegsToMove[i];
1090
+ for (MCPhysReg Reg : RegsToMove) {
1093
1091
auto IfR = [Reg] (const CalleeSavedInfo &C) -> bool {
1094
1092
return C.getReg () == Reg;
1095
1093
};
0 commit comments