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`.
This commit is contained in:
parent
9c509a0c6a
commit
3376bad132
1 changed files with 3 additions and 8 deletions
|
|
@ -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};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue