Skip to content

Commit 90556ef

Browse files
[Driver] Use llvm::make_range(std::pair) (NFC) (#105470)
1 parent 7f7f4fe commit 90556ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9088,7 +9088,7 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
90889088
// Pass the CUDA path to the linker wrapper tool.
90899089
for (Action::OffloadKind Kind : {Action::OFK_Cuda, Action::OFK_OpenMP}) {
90909090
auto TCRange = C.getOffloadToolChains(Kind);
9091-
for (auto &I : llvm::make_range(TCRange.first, TCRange.second)) {
9091+
for (auto &I : llvm::make_range(TCRange)) {
90929092
const ToolChain *TC = I.second;
90939093
if (TC->getTriple().isNVPTX()) {
90949094
CudaInstallationDetector CudaInstallation(D, TheTriple, Args);

0 commit comments

Comments
 (0)