diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index 37dc2c27286..2adcd2cdff3 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -479,19 +479,19 @@ ARMBaseRegisterInfo::getRawAllocationOrder(const TargetRegisterClass *RC, if (!TFI->hasFP(MF)) { if (!STI.isR9Reserved()) - return GPREven1; + return ArrayRef(GPREven1); else - return GPREven4; + return ArrayRef(GPREven4); } else if (FramePtr == ARM::R7) { if (!STI.isR9Reserved()) - return GPREven2; + return ArrayRef(GPREven2); else - return GPREven5; + return ArrayRef(GPREven5); } else { // FramePtr == ARM::R11 if (!STI.isR9Reserved()) - return GPREven3; + return ArrayRef(GPREven3); else - return GPREven6; + return ArrayRef(GPREven6); } } else if (HintType == ARMRI::RegPairOdd) { if (isPhysicalRegister(HintReg) && getRegisterPairOdd(HintReg, MF) == 0) @@ -501,19 +501,19 @@ ARMBaseRegisterInfo::getRawAllocationOrder(const TargetRegisterClass *RC, if (!TFI->hasFP(MF)) { if (!STI.isR9Reserved()) - return GPROdd1; + return ArrayRef(GPROdd1); else - return GPROdd4; + return ArrayRef(GPROdd4); } else if (FramePtr == ARM::R7) { if (!STI.isR9Reserved()) - return GPROdd2; + return ArrayRef(GPROdd2); else - return GPROdd5; + return ArrayRef(GPROdd5); } else { // FramePtr == ARM::R11 if (!STI.isR9Reserved()) - return GPROdd3; + return ArrayRef(GPROdd3); else - return GPROdd6; + return ArrayRef(GPROdd6); } } return RC->getRawAllocationOrder(MF);