[PATCH] D37912: [OpenMP] Bugfix: output file name drops the absolute path where full path is needed.
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 19 10:26:40 PDT 2017
tra added inline comments.
================
Comment at: lib/Driver/ToolChains/Cuda.cpp:441
- SmallString<256> Name = llvm::sys::path::filename(II.getFilename());
+ SmallString<256> Name = StringRef(II.getFilename());
llvm::sys::path::replace_extension(Name, "cubin");
----------------
I don't think explicit StringRef is needed here. `SmallString<256> Name(II.getFilename());` should do the job.
Repository:
rL LLVM
https://reviews.llvm.org/D37912
More information about the cfe-commits
mailing list