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 6053ca0 commit 283a03cCopy full SHA for 283a03c
llvm/lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
@@ -376,10 +376,11 @@ bool AMDGPURewriteOutArguments::runOnFunction(Function &F) {
376
377
int RetIdx = RetTy->isVoidTy() ? 0 : 1;
378
for (Argument &Arg : F.args()) {
379
- if (!OutArgIndexes.count(Arg.getArgNo()))
+ auto It = OutArgIndexes.find(Arg.getArgNo());
380
+ if (It == OutArgIndexes.end())
381
continue;
382
- Type *EltTy = OutArgIndexes[Arg.getArgNo()];
383
+ Type *EltTy = It->second;
384
const auto Align =
385
DL->getValueOrABITypeAlignment(Arg.getParamAlign(), EltTy);
386
0 commit comments