Index: llvm/trunk/lib/Target/Mips/MipsFastISel.cpp =================================================================== --- llvm/trunk/lib/Target/Mips/MipsFastISel.cpp +++ llvm/trunk/lib/Target/Mips/MipsFastISel.cpp @@ -67,6 +67,7 @@ #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" #include +#include #include #include @@ -1306,13 +1307,13 @@ return false; } - const ArrayRef GPR32ArgRegs = {Mips::A0, Mips::A1, Mips::A2, - Mips::A3}; - const ArrayRef FGR32ArgRegs = {Mips::F12, Mips::F14}; - const ArrayRef AFGR64ArgRegs = {Mips::D6, Mips::D7}; - ArrayRef::iterator NextGPR32 = GPR32ArgRegs.begin(); - ArrayRef::iterator NextFGR32 = FGR32ArgRegs.begin(); - ArrayRef::iterator NextAFGR64 = AFGR64ArgRegs.begin(); + std::array GPR32ArgRegs = {Mips::A0, Mips::A1, Mips::A2, + Mips::A3}; + std::array FGR32ArgRegs = {Mips::F12, Mips::F14}; + std::array AFGR64ArgRegs = {Mips::D6, Mips::D7}; + auto NextGPR32 = GPR32ArgRegs.begin(); + auto NextFGR32 = FGR32ArgRegs.begin(); + auto NextAFGR64 = AFGR64ArgRegs.begin(); struct AllocatedReg { const TargetRegisterClass *RC;