[compiler-rt] [compiler-rt] simplifying ::ReExec for freebsd. (PR #79711)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 27 14:16:58 PST 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 7c03d5d41daad230406890499cf4fa14973ee5eb 5ad196ff8b7619f0381d2b294c5c98c2974fd0d2 -- compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h b/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h
index b484e5d4fc..a22248d500 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h
@@ -58,8 +58,8 @@ static inline decltype(AuxInfo::a_v) getauxval(decltype(AuxInfo::a_type) type) {
 #elif SANITIZER_FREEBSD
 #  include <sys/auxv.h>
 
-#define SANITIZER_USE_GETAUXVAL 1
-#define AT_EXECFN AT_EXECPATH
+#  define SANITIZER_USE_GETAUXVAL 1
+#  define AT_EXECFN AT_EXECPATH
 
 static inline unsigned long getauxval(unsigned long type) {
   unsigned long buf = 0ul;

``````````

</details>


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


More information about the llvm-commits mailing list