summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2016-08-22 18:50:34 +0000
committerArtem Belevich <tra@google.com>2016-08-22 18:50:34 +0000
commitbee2f41fac8384c052b20b116dea091b00b20aec (patch)
treec018685e2d0339fa3a153122d68bbd404cf6ac86 /clang/lib/Driver/Driver.cpp
parent0fee97f8baf4c1942666df7adbfd07b6f8e8c904 (diff)
downloadbcm5719-llvm-bee2f41fac8384c052b20b116dea091b00b20aec.tar.gz
bcm5719-llvm-bee2f41fac8384c052b20b116dea091b00b20aec.zip
[CUDA] Collapsed offload actions should not be top-level jobs.
If they are, we end up with the last intermediary output preserved in the current directory after compilation. Added a test case to verify that we're using appropriate filenames for outputs of different phases. Differential Revision: https://reviews.llvm.org/D23526 llvm-svn: 279455
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 5bbc157b1ae..9871f29eb39 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -2230,7 +2230,7 @@ InputInfo Driver::BuildJobsForActionNoCache(
/*IsHostDependence=*/BuildForOffloadDevice,
[&](Action *DepA, const ToolChain *DepTC, const char *DepBoundArch) {
OffloadDependencesInputInfo.push_back(BuildJobsForAction(
- C, DepA, DepTC, DepBoundArch, AtTopLevel,
+ C, DepA, DepTC, DepBoundArch, /* AtTopLevel */ false,
/*MultipleArchs=*/!!DepBoundArch, LinkingOutput, CachedResults,
/*BuildForOffloadDevice=*/DepA->getOffloadingDeviceKind() !=
Action::OFK_None));
OpenPOWER on IntegriCloud