[llvm] r221965 - R600/SI: Make constant array static
Matt Arsenault
Matthew.Arsenault at amd.com
Thu Nov 13 18:21:59 PST 2014
Author: arsenm
Date: Thu Nov 13 20:21:58 2014
New Revision: 221965
URL: http://llvm.org/viewvc/llvm-project?rev=221965&view=rev
Log:
R600/SI: Make constant array static
Modified:
llvm/trunk/lib/Target/R600/SIRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/R600/SIRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIRegisterInfo.cpp?rev=221965&r1=221964&r2=221965&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIRegisterInfo.cpp Thu Nov 13 20:21:58 2014
@@ -267,7 +267,7 @@ unsigned SIRegisterInfo::getHWRegIndex(u
const TargetRegisterClass *SIRegisterInfo::getPhysRegClass(unsigned Reg) const {
assert(!TargetRegisterInfo::isVirtualRegister(Reg));
- const TargetRegisterClass *BaseClasses[] = {
+ static const TargetRegisterClass *BaseClasses[] = {
&AMDGPU::VReg_32RegClass,
&AMDGPU::SReg_32RegClass,
&AMDGPU::VReg_64RegClass,
More information about the llvm-commits
mailing list