[clang] [HIP] Remove dots in HIP runtime path (PR #143792)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 11 14:51:42 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/Driver/ToolChains/Linux.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
index 9bfe3a934..f08b0e7ea 100644
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -746,8 +746,7 @@ void Linux::AddHIPRuntimeLibArgs(const ArgList &Args,
                    options::OPT_fno_rtlib_add_rpath, false)) {
     SmallString<0> p = RocmInstallation->getLibPath();
     llvm::sys::path::remove_dots(p);
-    CmdArgs.append(
-        {"-rpath", Args.MakeArgString(p)});
+    CmdArgs.append({"-rpath", Args.MakeArgString(p)});
   }
 
   CmdArgs.push_back("-lamdhip64");

``````````

</details>


https://github.com/llvm/llvm-project/pull/143792


More information about the cfe-commits mailing list