[llvm] r286120 - AMDGPU: Try to fix (non-clang?) bot builds

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 08:52:50 PST 2016


Author: arsenm
Date: Mon Nov  7 10:52:50 2016
New Revision: 286120

URL: http://llvm.org/viewvc/llvm-project?rev=286120&view=rev
Log:
AMDGPU: Try to fix (non-clang?) bot builds

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp?rev=286120&r1=286119&r2=286120&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp Mon Nov  7 10:52:50 2016
@@ -1200,15 +1200,15 @@ ArrayRef<int16_t> SIRegisterInfo::getReg
     case 32:
       return {};
     case 64:
-      return Sub0_1;
+      return makeArrayRef(Sub0_1);
     case 96:
-      return Sub0_2;
+      return makeArrayRef(Sub0_2);
     case 128:
-      return Sub0_3;
+      return makeArrayRef(Sub0_3);
     case 256:
-      return Sub0_7;
+      return makeArrayRef(Sub0_7);
     case 512:
-      return Sub0_15;
+      return makeArrayRef(Sub0_15);
     default:
       llvm_unreachable("unhandled register size");
     }
@@ -1236,11 +1236,11 @@ ArrayRef<int16_t> SIRegisterInfo::getReg
     case 64:
       return {};
     case 128:
-      return Sub0_3_64;
+      return makeArrayRef(Sub0_3_64);
     case 256:
-      return Sub0_7_64;
+      return makeArrayRef(Sub0_7_64);
     case 512:
-      return Sub0_15_64;
+      return makeArrayRef(Sub0_15_64);
     default:
       llvm_unreachable("unhandled register size");
     }
@@ -1264,9 +1264,9 @@ ArrayRef<int16_t> SIRegisterInfo::getReg
   case 128:
     return {};
   case 256:
-    return Sub0_7_128;
+    return makeArrayRef(Sub0_7_128);
   case 512:
-    return Sub0_15_128;
+    return makeArrayRef(Sub0_15_128);
   default:
     llvm_unreachable("unhandled register size");
   }




More information about the llvm-commits mailing list