[clang] [Clang][AMDGPU] Default AMDGPU targets to the minimal runtime (PR #204809)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 05:22:49 PDT 2026


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/SanitizerArgs.cpp clang/test/Driver/fsanitize-minimal-runtime.c --diff_from_common_commit
``````````

: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/SanitizerArgs.cpp b/clang/lib/Driver/SanitizerArgs.cpp
index db7bbb9b7..802b1c3d5 100644
--- a/clang/lib/Driver/SanitizerArgs.cpp
+++ b/clang/lib/Driver/SanitizerArgs.cpp
@@ -438,9 +438,9 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
   const bool ExplicitMinimalRuntime =
       Args.hasFlag(options::OPT_fsanitize_minimal_runtime,
                    options::OPT_fno_sanitize_minimal_runtime, false);
-  MinimalRuntime = Args.hasFlag(options::OPT_fsanitize_minimal_runtime,
-                                options::OPT_fno_sanitize_minimal_runtime,
-                                Triple.isGPU());
+  MinimalRuntime =
+      Args.hasFlag(options::OPT_fsanitize_minimal_runtime,
+                   options::OPT_fno_sanitize_minimal_runtime, Triple.isGPU());
   HandlerPreserveAllRegs =
       Args.hasFlag(options::OPT_fsanitize_handler_preserve_all_regs,
                    options::OPT_fno_sanitize_handler_preserve_all_regs,

``````````

</details>


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


More information about the cfe-commits mailing list