We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b837c9e commit 948467bCopy full SHA for 948467b
llvm/lib/Target/AMDGPU/AMDGPUSwLowerLDS.cpp
@@ -952,8 +952,7 @@ Constant *AMDGPUSwLowerLDS::getAddressesOfVariablesInKernel(
952
ArrayType::get(IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS), Variables.size());
953
954
SmallVector<Constant *> Elements;
955
- for (size_t i = 0; i < Variables.size(); i++) {
956
- GlobalVariable *GV = Variables[i];
+ for (auto *GV : Variables) {
957
if (!LDSParams.LDSToReplacementIndicesMap.contains(GV)) {
958
Elements.push_back(
959
PoisonValue::get(IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS)));
0 commit comments