Skip to content

Commit e5f9a94

Browse files
authored
[Driver] Fix OpenMP inputs embedded in host object (#5703)
The last merge had an extra if conditional which was causing the embedded input to the host compilation to be lost. Fix this up to match functional expectations.
1 parent 7eab110 commit e5f9a94

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4725,7 +4725,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
47254725
const InputInfo *CudaDeviceInput = nullptr;
47264726
const InputInfo *OpenMPDeviceInput = nullptr;
47274727
const InputInfo *SYCLDeviceInput = nullptr;
4728-
const InputInfo *OpenMPHostInput = nullptr;
47294728
for (const InputInfo &I : Inputs) {
47304729
if (&I == &Input) {
47314730
// This is the primary input.
@@ -4744,8 +4743,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
47444743
OpenMPDeviceInput = &I;
47454744
} else if (IsSYCL && !SYCLDeviceInput) {
47464745
SYCLDeviceInput = &I;
4747-
} else if (IsOpenMPHost && !OpenMPHostInput) {
4748-
OpenMPHostInput = &I;
47494746
} else if (IsOpenMPHost) {
47504747
OpenMPHostInputs.push_back(I);
47514748
} else {

0 commit comments

Comments
 (0)