Skip to content

Commit 3376bad

Browse files
committed
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`.
1 parent 9c509a0 commit 3376bad

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5815,15 +5815,10 @@ InputInfoList Driver::BuildJobsForActionNoCache(
58155815
}
58165816
} else {
58175817
if (UnbundlingResults.empty())
5818-
T->ConstructJob(
5819-
C, *JA, Result, InputInfos,
5820-
C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
5821-
LinkingOutput);
5818+
T->ConstructJob(C, *JA, Result, InputInfos, Args, LinkingOutput);
58225819
else
5823-
T->ConstructJobMultipleOutputs(
5824-
C, *JA, UnbundlingResults, InputInfos,
5825-
C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
5826-
LinkingOutput);
5820+
T->ConstructJobMultipleOutputs(C, *JA, UnbundlingResults, InputInfos,
5821+
Args, LinkingOutput);
58275822
}
58285823
return {Result};
58295824
}

0 commit comments

Comments
 (0)