forked from OSchip/llvm-project
Stop using ArrayRef of a const type.
I *think* this is what the GCC bots are complaining about. llvm-svn: 222905
This commit is contained in:
parent
b047bfae32
commit
a38e5cbf20
|
@ -345,8 +345,7 @@ public:
|
|||
/// AllocateRegBlock - Attempt to allocate a block of RegsRequired consecutive
|
||||
/// registers. If this is not possible, return zero. Otherwise, return the first
|
||||
/// register of the block that were allocated, marking the entire block as allocated.
|
||||
unsigned AllocateRegBlock(ArrayRef<const uint16_t> Regs,
|
||||
unsigned RegsRequired) {
|
||||
unsigned AllocateRegBlock(ArrayRef<uint16_t> Regs, unsigned RegsRequired) {
|
||||
if (RegsRequired > Regs.size())
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ static bool CC_AArch64_Custom_Block(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
|
|||
ISD::ArgFlagsTy &ArgFlags, CCState &State) {
|
||||
// Try to allocate a contiguous block of registers, each of the correct
|
||||
// size to hold one member.
|
||||
ArrayRef<const uint16_t> RegList;
|
||||
ArrayRef<uint16_t> RegList;
|
||||
if (LocVT.SimpleTy == MVT::i64)
|
||||
RegList = XRegList;
|
||||
else if (LocVT.SimpleTy == MVT::f32)
|
||||
|
|
|
@ -194,7 +194,7 @@ static bool CC_ARM_AAPCS_Custom_HA(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
|
|||
|
||||
// Try to allocate a contiguous block of registers, each of the correct
|
||||
// size to hold one member.
|
||||
ArrayRef<const uint16_t> RegList;
|
||||
ArrayRef<uint16_t> RegList;
|
||||
switch (LocVT.SimpleTy) {
|
||||
case MVT::f32:
|
||||
RegList = SRegList;
|
||||
|
|
Loading…
Reference in New Issue