[compiler-rt] [compiler-rt] Fix GH-112254 DumpAllRegs for win arm64. (PR #112305)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 21:01:39 PDT 2024


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 5462725e0cfc40ed276f68fe9f639b072cb14700 efd6c7008a4c906566474303edb34e21329426e5 --extensions cpp -- compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
index 5081f1a4b9..a3cd03ee37 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
@@ -1070,7 +1070,7 @@ void SignalContext::DumpAllRegisters(void *context) {
   Printf("\n");
 #  elif defined(_M_ARM64)
   Report("Register values:\n");
-  for (int i = 0; i <= 31; i ++) {
+  for (int i = 0; i <= 31; i++) {
     Printf("x%d%s = %llx", i < 10 ? " " : "", ctx->X[i]);
     if (i % 4 == 3)
       Printf("\n");

``````````

</details>


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


More information about the llvm-commits mailing list