summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2017-09-25 21:07:16 +0000
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2017-09-25 21:07:16 +0000
commit8cf757cedaacc1a327917b8ba2465091c0d3d36b (patch)
treec26dd9315873abe058fe47e758a5abffdf0e45d9 /clang/lib/Driver
parent6e4dfccc31324cd65b07f5efe4274604ce89c328 (diff)
downloadbcm5719-llvm-8cf757cedaacc1a327917b8ba2465091c0d3d36b.tar.gz
bcm5719-llvm-8cf757cedaacc1a327917b8ba2465091c0d3d36b.zip
[OpenMP] Don't throw cudalib not found error if only front-end is required.
Summary: If we only use the compiler front-end, do not throw an error about the cuda device library not being found. This allows the front-end to be run on systems where no Cuda installation is found. Reviewers: Hahnfeld, ABataev, carlo.bertolli, caomhin, tra Reviewed By: tra Subscribers: hfinkel, tra, cfe-commits Differential Revision: https://reviews.llvm.org/D37914 llvm-svn: 314150
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/ToolChains/Cuda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Cuda.cpp b/clang/lib/Driver/ToolChains/Cuda.cpp
index a0b348ffc4a..b70b6b64742 100644
--- a/clang/lib/Driver/ToolChains/Cuda.cpp
+++ b/clang/lib/Driver/ToolChains/Cuda.cpp
@@ -438,7 +438,7 @@ void NVPTX::OpenMPLinker::ConstructJob(Compilation &C, const JobAction &JA,
if (!II.isFilename())
continue;
- SmallString<256> Name = llvm::sys::path::filename(II.getFilename());
+ SmallString<256> Name(II.getFilename());
llvm::sys::path::replace_extension(Name, "cubin");
const char *CubinF =
OpenPOWER on IntegriCloud