Skip to content

Commit 3f91f2d

Browse files
jhuber6yuxuanchen1997
authored andcommitted
[Clang] Fix incorrect value assignment in nvlink wrapper
Summary: Gah, forgot to push this before I merged. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251363
1 parent 3f82335 commit 3f91f2d

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)