[clang] e391ba0 - [Clang] Fix incorrect value assignment in nvlink wrapper

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 16:23:34 PDT 2024


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)


        


More information about the cfe-commits mailing list