diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2022-09-06 20:14:20 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2022-09-06 20:14:20 -0500 |
commit | a6bb7c22fc288686010076ac253a12b4b1cd2ee5 (patch) | |
tree | 5455e3efedd9a8c735d291d78d69b31d9d7422cf /clang/lib/Driver/Driver.cpp | |
parent | 2753eafe5a7f003776b12f425c5b0a475e8fb6b7 (diff) | |
download | llvm-a6bb7c22fc288686010076ac253a12b4b1cd2ee5.zip llvm-a6bb7c22fc288686010076ac253a12b4b1cd2ee5.tar.gz llvm-a6bb7c22fc288686010076ac253a12b4b1cd2ee5.tar.bz2 |
[CUDA] Fix test failing when using the new driver
Summary:
Previously the new driver crashed when using `-fsyntax-only` which
required a work-around in one of the test files. This was not properly
updated when it was fixed for the new driver. This patch fixes the test
and also adjusts a missing boolean check.
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 9517331a..ca8e0e5 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -4391,7 +4391,7 @@ Action *Driver::BuildOffloadingActions(Compilation &C, }) && isa<CompileJobAction>(HostAction); OffloadAction::HostDependence HDep( *HostAction, *C.getSingleOffloadToolChain<Action::OFK_Host>(), - /*BoundArch=*/nullptr, isa<CompileJobAction>(HostAction) ? DDep : DDeps); + /*BoundArch=*/nullptr, SingleDeviceOutput ? DDep : DDeps); return C.MakeAction<OffloadAction>(HDep, SingleDeviceOutput ? DDep : DDeps); } |