Skip to content

Commit 336e319

Browse files
authored
Update Cuda.cpp
1 parent 79d1432 commit 336e319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ void NVPTX::Linker::ConstructJob(Compilation &C, const JobAction &JA,
646646
if (Args.hasArg(options::OPT_stdlib))
647647
CmdArgs.append({"-lc", "-lm"});
648648
if (Args.hasArg(options::OPT_startfiles)) {
649-
auto IncludePath = getToolChain().getStdlibPath();
649+
std::optional<std::string> IncludePath = getToolChain().getStdlibPath();
650650
if (!IncludePath)
651651
IncludePath = "/lib";
652652
SmallString<128> P(*IncludePath);

0 commit comments

Comments
 (0)