aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorAaron Puchert <aaron.puchert@sap.com>2024-12-10 19:25:36 +0100
committerAaron Puchert <aaron.puchert@sap.com>2024-12-10 20:01:19 +0100
commit3376bad13216da8950bcdeb564df26d5ce4c12bc (patch)
tree10f60d7ec8f235ef37f730950662692ef25aeea6 /clang/lib/Driver/Driver.cpp
parent9c509a0c6a5184d7ce32e7f15c1241fac9eac1ef (diff)
downloadllvm-3376bad13216da8950bcdeb564df26d5ce4c12bc.zip
llvm-3376bad13216da8950bcdeb564df26d5ce4c12bc.tar.gz
llvm-3376bad13216da8950bcdeb564df26d5ce4c12bc.tar.bz2
Eliminate duplicate call in Clang driver (NFC)
The only difference is the usage of `JobAction* JA` versus `Action* A` in one argument, but `JA = cast<JobAction>(A)`, and the called function is inherited from `Action`.
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 6ba13d7..fb73b62 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -5815,15 +5815,10 @@ InputInfoList Driver::BuildJobsForActionNoCache(
}
} else {
if (UnbundlingResults.empty())
- T->ConstructJob(
- C, *JA, Result, InputInfos,
- C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
- LinkingOutput);
+ T->ConstructJob(C, *JA, Result, InputInfos, Args, LinkingOutput);
else
- T->ConstructJobMultipleOutputs(
- C, *JA, UnbundlingResults, InputInfos,
- C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
- LinkingOutput);
+ T->ConstructJobMultipleOutputs(C, *JA, UnbundlingResults, InputInfos,
+ Args, LinkingOutput);
}
return {Result};
}