File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
clang/lib/Driver/ToolChains Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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),
You can’t perform that action at this time.
0 commit comments