Skip to content

Commit 948467b

Browse files
committed
[AMDGPU] Use a range-based for loop. NFC.
1 parent b837c9e commit 948467b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,7 @@ Constant *AMDGPUSwLowerLDS::getAddressesOfVariablesInKernel(
952952
ArrayType::get(IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS), Variables.size());
953953

954954
SmallVector<Constant *> Elements;
955-
for (size_t i = 0; i < Variables.size(); i++) {
956-
GlobalVariable *GV = Variables[i];
955+
for (auto *GV : Variables) {
957956
if (!LDSParams.LDSToReplacementIndicesMap.contains(GV)) {
958957
Elements.push_back(
959958
PoisonValue::get(IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS)));

0 commit comments

Comments
 (0)