[compiler-rt] [compiler-rt] [safestack] store unsafe stack pointer in TCB (PR #85878)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 16:27:53 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 e28d3e9b4e5779028a38ca39ed060938ff62c498 f0b592058c5b9e5ddd7b4a2ded679a03442fdfe2 -- compiler-rt/lib/safestack/safestack.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/safestack/safestack.cpp b/compiler-rt/lib/safestack/safestack.cpp
index 5b1f7d6bf0..126f63a04c 100644
--- a/compiler-rt/lib/safestack/safestack.cpp
+++ b/compiler-rt/lib/safestack/safestack.cpp
@@ -38,12 +38,12 @@ __attribute__((visibility(
 }
 
 #if defined(__linux__) && defined(__x86_64__)
-#include <stdint.h>
-#include <sys/types.h>
+#  include <stdint.h>
+#  include <sys/types.h>
 
 typedef struct {
-  void *tcb;        /* Pointer to the TCB.  Not necessarily the
-                       thread descriptor used by libpthread.  */
+  void *tcb;              /* Pointer to the TCB.  Not necessarily the
+                             thread descriptor used by libpthread.  */
   uint64_t *stack_guard;  /* Stack guard value for the thread.  */
   void *unsafe_stack_ptr; /* Unsafe stack pointer for the thread. */
 } tcbhead_t;

``````````

</details>


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


More information about the llvm-commits mailing list