[llvm] r216793 - Speculative build fix for const, gcc, and ArrayRef overloads

Reid Kleckner reid at kleckner.net
Fri Aug 29 15:12:08 PDT 2014


Author: rnk
Date: Fri Aug 29 17:12:08 2014
New Revision: 216793

URL: http://llvm.org/viewvc/llvm-project?rev=216793&view=rev
Log:
Speculative build fix for const, gcc, and ArrayRef overloads

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=216793&r1=216792&r2=216793&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Aug 29 17:12:08 2014
@@ -2335,13 +2335,13 @@ static ArrayRef<MCPhysReg> get64BitArgum
     static const MCPhysReg GPR64ArgRegsWin64[] = {
       X86::RCX, X86::RDX, X86::R8,  X86::R9
     };
-    return GPR64ArgRegsWin64;
+    return makeArrayRef(std::begin(GPR64ArgRegsWin64), std::end(GPR64ArgRegsWin64));
   }
 
   static const MCPhysReg GPR64ArgRegs64Bit[] = {
     X86::RDI, X86::RSI, X86::RDX, X86::RCX, X86::R8, X86::R9
   };
-  return GPR64ArgRegs64Bit;
+  return makeArrayRef(std::begin(GPR64ArgRegs64Bit), std::end(GPR64ArgRegs64Bit));
 }
 
 // FIXME: Get this from tablegen.
@@ -2372,7 +2372,7 @@ static ArrayRef<MCPhysReg> get64BitArgum
     X86::XMM0, X86::XMM1, X86::XMM2, X86::XMM3,
     X86::XMM4, X86::XMM5, X86::XMM6, X86::XMM7
   };
-  return XMMArgRegs64Bit;
+  return makeArrayRef(std::begin(XMMArgRegs64Bit), std::end(XMMArgRegs64Bit));
 }
 
 SDValue





More information about the llvm-commits mailing list