[CUDA] Unswitch enumerators in the selection of the offloading tool chain.

llvm-svn: 277064
This commit is contained in:
Samuel Antao 2016-07-28 22:42:42 +00:00
parent 60606266e0
commit 102c182bca
1 changed files with 2 additions and 2 deletions

View File

@ -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.