File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1072,7 +1072,6 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
10721072 }
10731073 } else if (C.getInputArgs ().hasArg (options::OPT_offload_arch_EQ) &&
10741074 ((!IsHIP && !IsCuda) || UseLLVMOffload)) {
1075- const ToolChain *HostTC = C.getSingleOffloadToolChain <Action::OFK_Host>();
10761075 llvm::Triple AMDTriple (" amdgcn-amd-amdhsa" );
10771076 llvm::Triple NVPTXTriple (" nvptx64-nvidia-cuda" );
10781077
@@ -1096,11 +1095,10 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
10961095 return ;
10971096 }
10981097
1099- if (TT.isNVPTX () && IsNVPTX) {
1098+ if (TT.isNVPTX () && IsNVPTX)
11001099 ArchsForTarget.insert (Arch);
1101- } else if (TT.isAMDGPU () && IsAMDGPU) {
1100+ else if (TT.isAMDGPU () && IsAMDGPU)
11021101 ArchsForTarget.insert (Arch);
1103- }
11041102 }
11051103 if (!ArchsForTarget.empty ()) {
11061104 C.addOffloadDeviceToolChain (&TC, Action::OFK_OpenMP);
You can’t perform that action at this time.
0 commit comments