forked from OSchip/llvm-project
[CUDA] Unswitch enumerators in the selection of the offloading tool chain.
llvm-svn: 277064
This commit is contained in:
parent
60606266e0
commit
102c182bca
|
@ -308,9 +308,9 @@ forAllAssociatedToolChains(Compilation &C, const JobAction &JA,
|
|||
// Apply Work on all the offloading tool chains associated with the current
|
||||
// action.
|
||||
if (JA.isHostOffloading(Action::OFK_Cuda))
|
||||
Work(*C.getSingleOffloadToolChain<Action::OFK_Host>());
|
||||
else if (JA.isDeviceOffloading(Action::OFK_Cuda))
|
||||
Work(*C.getSingleOffloadToolChain<Action::OFK_Cuda>());
|
||||
else if (JA.isDeviceOffloading(Action::OFK_Cuda))
|
||||
Work(*C.getSingleOffloadToolChain<Action::OFK_Host>());
|
||||
|
||||
//
|
||||
// TODO: Add support for other offloading programming models here.
|
||||
|
|
Loading…
Reference in New Issue