summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-09-21 05:32:41 +0000
committerCraig Topper <craig.topper@gmail.com>2015-09-21 05:32:41 +0000
commit0013be16fff27ce7744210007e08ed7528212c65 (patch)
tree623d42291b99ad1b5a7972fca60ec30e7b6d235d /llvm/lib/Target/AMDGPU/SIISelLowering.cpp
parent18929c50694220481b53784dad9e7a5a7aaec919 (diff)
downloadbcm5719-llvm-0013be16fff27ce7744210007e08ed7528212c65.tar.gz
bcm5719-llvm-0013be16fff27ce7744210007e08ed7528212c65.zip
Use makeArrayRef or None to avoid unnecessarily mentioning the ArrayRef type extra times. NFC
llvm-svn: 248140
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIISelLowering.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index d0830a9e583..120966e92db 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -691,7 +691,7 @@ SDValue SITargetLowering::LowerFormalArguments(
}
if (Info->getShaderType() != ShaderType::COMPUTE) {
- unsigned ScratchIdx = CCInfo.getFirstUnallocated(ArrayRef<MCPhysReg>(
+ unsigned ScratchIdx = CCInfo.getFirstUnallocated(makeArrayRef(
AMDGPU::SGPR_32RegClass.begin(), AMDGPU::SGPR_32RegClass.getNumRegs()));
Info->ScratchOffsetReg = AMDGPU::SGPR_32RegClass.getRegister(ScratchIdx);
}
OpenPOWER on IntegriCloud