[clang] [llvm] [NFC][HIP][SPIRV] Fix linking / translation step on Windows (PR #162175)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 6 15:17:24 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 origin/main HEAD --extensions cpp,c -- clang/lib/Driver/ToolChains/HIPAMD.cpp clang/test/Driver/spirv-amd-toolchain.c
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/HIPAMD.cpp b/clang/lib/Driver/ToolChains/HIPAMD.cpp
index 8b8d6e6f5..68d6aa247 100644
--- a/clang/lib/Driver/ToolChains/HIPAMD.cpp
+++ b/clang/lib/Driver/ToolChains/HIPAMD.cpp
@@ -170,8 +170,8 @@ void AMDGCN::Linker::constructLinkAndEmitSpirvCommand(
InputInfo LinkedBC = Inputs.front();
if (Inputs.size() > 1) {
- std::string TempPath = C.getDriver().GetTemporaryPath("pre-spirv-translate",
- "bc");
+ std::string TempPath =
+ C.getDriver().GetTemporaryPath("pre-spirv-translate", "bc");
LinkedBC = InputInfo(&JA, C.getArgs().MakeArgString(TempPath),
Output.getBaseInput());
constructLlvmLinkCommand(C, JA, Inputs, LinkedBC, Args);
``````````
</details>
https://github.com/llvm/llvm-project/pull/162175
More information about the llvm-commits
mailing list