Skip to content

Commit e391ba0

Browse files
committed
[Clang] Fix incorrect value assignment in nvlink wrapper
Summary: Gah, forgot to push this before I merged.
1 parent 37d0568 commit e391ba0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ struct Symbol {
294294

295295
Expected<StringRef> runPTXAs(StringRef File, const ArgList &Args) {
296296
std::string CudaPath = Args.getLastArgValue(OPT_cuda_path_EQ).str();
297-
Expected<std::string> PTXAsPath = Args.getLastArgValue(OPT_ptxas_path);
297+
Expected<std::string> PTXAsPath =
298+
Args.getLastArgValue(OPT_ptxas_path_EQ).str();
298299
if (PTXAsPath->empty())
299300
PTXAsPath = findProgram("ptxas", {CudaPath + "/bin"});
300301
if (!PTXAsPath)

0 commit comments

Comments
 (0)