Skip to content

Commit c994900

Browse files
committed
Align driver with ba5628f SmallString change
1 parent 076857b commit c994900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ void SYCL::fpga::BackendCompiler::ConstructJob(
350350
if (types::isSrcFile(Ty) || Ty == types::TY_Object) {
351351
// The project report is created in CWD, so strip off any directory
352352
// information if provided with the input file.
353-
ArgName = llvm::sys::path::filename(ArgName);
353+
StringRef TrimmedArgName = llvm::sys::path::filename(ArgName);
354354
if (types::isSrcFile(Ty)) {
355355
SmallString<128> DepName(
356-
C.getDriver().getFPGATempDepFile(std::string(ArgName)));
356+
C.getDriver().getFPGATempDepFile(std::string(TrimmedArgName)));
357357
if (!DepName.empty())
358358
FPGADepFiles.push_back(InputInfo(types::TY_Dependencies,
359359
Args.MakeArgString(DepName),

0 commit comments

Comments
 (0)