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:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user