Skip to content

Commit 375c2f4

Browse files
committed
Use structured bindings.
1 parent 807f048 commit 375c2f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Transforms/HipStdPar/HipStdPar.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,9 @@ PreservedAnalyses HipStdParMathFixupPass::run(Module &M,
433433
StringRef Prefix = "llvm";
434434
ToReplace.back().second.replace(0, Prefix.size(), "__hipstdpar");
435435
}
436-
for (auto &&F : ToReplace)
437-
F.first->replaceAllUsesWith(
438-
M.getOrInsertFunction(F.second, F.first->getFunctionType())
439-
.getCallee());
436+
for (auto &&[F, NewF] : ToReplace)
437+
F->replaceAllUsesWith(
438+
M.getOrInsertFunction(NewF, F->getFunctionType()).getCallee());
440439

441440
return PreservedAnalyses::none();
442441
}

0 commit comments

Comments
 (0)