[compiler-rt] Dump regs fbsd fix (PR #99676)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 11:06: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 2f8b64d327a27a73b57a54eb5d1f28c41e650aee 77a323873431ef49a058f7944bc3d1dfeda4aab2 --extensions h,cpp -- compiler-rt/lib/safestack/safestack_platform.h compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
index 4e8452d459..165de50d21 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -2180,7 +2180,7 @@ static const char *RegNumToRegName(int reg) {
   return NULL;
 }
 
-#if SANITIZER_LINUX
+#  if SANITIZER_LINUX
 UNUSED
 static void DumpSingleReg(ucontext_t *ctx, int RegNum) {
   const char *RegName = RegNumToRegName(RegNum);
@@ -2193,7 +2193,7 @@ static void DumpSingleReg(ucontext_t *ctx, int RegNum) {
   (void)RegName;
 #  endif
 }
-#endif
+#  endif
 
 void SignalContext::DumpAllRegisters(void *context) {
   ucontext_t *ucontext = (ucontext_t *)context;

``````````

</details>


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


More information about the llvm-commits mailing list