[compiler-rt] [tsan] Fix `gettid` declaration on powerpc64 linux buildbots (PR #100395)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 07:48:35 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 de8c4bef3329ce0045b8167cdb96d53b2a1509df 43397c0f1d618d6b7d152f21d6fffb7a7b339f8c --extensions cpp -- compiler-rt/test/tsan/debug_alloc_stack.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/tsan/debug_alloc_stack.cpp b/compiler-rt/test/tsan/debug_alloc_stack.cpp
index e6bb38313e..e0e1a922d9 100644
--- a/compiler-rt/test/tsan/debug_alloc_stack.cpp
+++ b/compiler-rt/test/tsan/debug_alloc_stack.cpp
@@ -8,9 +8,9 @@
#include <stdlib.h>
#ifndef __APPLE__
-#define _GNU_SOURCE
-#include <sys/types.h>
-#include <unistd.h>
+# define _GNU_SOURCE
+# include <sys/types.h>
+# include <unistd.h>
#endif
extern "C" int __tsan_get_alloc_stack(void *addr, void **trace, size_t size,
``````````
</details>
https://github.com/llvm/llvm-project/pull/100395
More information about the llvm-commits
mailing list