Stop using ArrayRef of a const type.
authorTim Northover <tnorthover@apple.com>
Thu, 27 Nov 2014 21:29:20 +0000 (21:29 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 27 Nov 2014 21:29:20 +0000 (21:29 +0000)
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

include/llvm/CodeGen/CallingConvLower.h
lib/Target/AArch64/AArch64CallingConvention.h
lib/Target/ARM/ARMCallingConv.h

index 903a395496061d49292e536172448e279373d56c..7a979dbcef894c190c219afb345d225d57252c6b 100644 (file)
@@ -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;
 
index b2be99e5419eb611fed067699eace7fba686d2a2..6355164ac57f2fcbf26ecb40a5bb5d556a8440af 100644 (file)
@@ -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)
index 4567a2a1afd8b495c783398f10a9823f87be9c1a..e0d0559ba986b4aac0fdaf6f1bfc5953100d3134 100644 (file)
@@ -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;