clang: Remove dead null toolchain check (#190402)

This commit is contained in:
Matt Arsenault 2026-04-03 23:35:18 +02:00 committed by GitHub
parent 64987a9ccc
commit 36e781ceb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4459,8 +4459,6 @@ shouldBundleHIPAsmWithNewDriver(const Compilation &C,
auto HIPTCs = C.getOffloadToolChains(Action::OFK_HIP);
for (auto It = HIPTCs.first; It != HIPTCs.second; ++It) {
const ToolChain *TC = It->second;
if (!TC)
continue;
const llvm::Triple &Tr = TC->getTriple();
if (!Tr.isAMDGPU())
return false;