llvm.org GIT mirror llvm / 402b6fd
Stop using ArrayRef of a const type. I *think* this is what the GCC bots are complaining about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222905 91177308-0d34-0410-b5e6-96231b3b80d8 Tim Northover 5 years ago
3 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
344344 /// AllocateRegBlock - Attempt to allocate a block of RegsRequired consecutive
345345 /// registers. If this is not possible, return zero. Otherwise, return the first
346346 /// register of the block that were allocated, marking the entire block as allocated.
347 unsigned AllocateRegBlock(ArrayRef Regs,
348 unsigned RegsRequired) {
347 unsigned AllocateRegBlock(ArrayRef Regs, unsigned RegsRequired) {
349348 if (RegsRequired > Regs.size())
350349 return 0;
351350
8484 ISD::ArgFlagsTy &ArgFlags, CCState &State) {
8585 // Try to allocate a contiguous block of registers, each of the correct
8686 // size to hold one member.
87 ArrayRef<const uint16_t> RegList;
87 ArrayRef<uint16_t> RegList;
8888 if (LocVT.SimpleTy == MVT::i64)
8989 RegList = XRegList;
9090 else if (LocVT.SimpleTy == MVT::f32)
193193
194194 // Try to allocate a contiguous block of registers, each of the correct
195195 // size to hold one member.
196 ArrayRef<const uint16_t> RegList;
196 ArrayRef<uint16_t> RegList;
197197 switch (LocVT.SimpleTy) {
198198 case MVT::f32:
199199 RegList = SRegList;