Skip to content

Commit df928e8

Browse files
committed
Adjust offloading toolchain creation check.
1 parent 5e63d1e commit df928e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,6 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
877877
return;
878878
auto *HIPTC = &getOffloadingDeviceToolChain(C.getInputArgs(), *HIPTriple,
879879
*HostTC, OFK);
880-
assert(HIPTC && "Could not create offloading device tool chain.");
881880
C.addOffloadDeviceToolChain(HIPTC, OFK);
882881
}
883882

@@ -1060,7 +1059,6 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
10601059
for (const auto &TargetTriple : UniqueSYCLTriplesVec) {
10611060
auto SYCLTC = &getOffloadingDeviceToolChain(
10621061
C.getInputArgs(), TargetTriple, *HostTC, Action::OFK_SYCL);
1063-
assert(SYCLTC && "Could not create offloading device tool chain.");
10641062
C.addOffloadDeviceToolChain(SYCLTC, Action::OFK_SYCL);
10651063
}
10661064
}
@@ -6697,7 +6695,7 @@ const ToolChain &Driver::getOffloadingDeviceToolChain(
66976695
break;
66986696
}
66996697
}
6700-
6698+
assert(TC && "Could not create offloading device tool chain.");
67016699
return *TC;
67026700
}
67036701

0 commit comments

Comments
 (0)