File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments