Author: Joseph Huber Date: 2024-07-22T18:23:02-05:00 New Revision: e391ba07fabd3990edb9be9f3d715abba7e43343
URL: https://github.com/llvm/llvm-project/commit/e391ba07fabd3990edb9be9f3d715abba7e43343 DIFF: https://github.com/llvm/llvm-project/commit/e391ba07fabd3990edb9be9f3d715abba7e43343.diff LOG: [Clang] Fix incorrect value assignment in nvlink wrapper Summary: Gah, forgot to push this before I merged. Added: Modified: clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp Removed: ################################################################################ diff --git a/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp b/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp index 5b6d7a0cffb49..c56486b54a339 100644 --- a/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp +++ b/clang/tools/clang-nvlink-wrapper/ClangNVLinkWrapper.cpp @@ -294,7 +294,8 @@ struct Symbol { Expected<StringRef> runPTXAs(StringRef File, const ArgList &Args) { std::string CudaPath = Args.getLastArgValue(OPT_cuda_path_EQ).str(); - Expected<std::string> PTXAsPath = Args.getLastArgValue(OPT_ptxas_path); + Expected<std::string> PTXAsPath = + Args.getLastArgValue(OPT_ptxas_path_EQ).str(); if (PTXAsPath->empty()) PTXAsPath = findProgram("ptxas", {CudaPath + "/bin"}); if (!PTXAsPath) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits