[compiler-rt] [asan] Ignore vDSO on FreeBSD (PR #76223)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 22 01:34:26 PST 2023


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 17858ce6f3d24f994f6ad8c899bfa4eed39f739d 5ce112814a3f56f2aebee65ec5ab94b28d145e42 -- compiler-rt/lib/asan/asan_linux.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/asan/asan_linux.cpp b/compiler-rt/lib/asan/asan_linux.cpp
index f1a9ddceaa..6b1c0f24bd 100644
--- a/compiler-rt/lib/asan/asan_linux.cpp
+++ b/compiler-rt/lib/asan/asan_linux.cpp
@@ -148,11 +148,11 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size,
       internal_strncmp(info->dlpi_name, "linux-", sizeof("linux-") - 1) == 0)
     return 0;
 #    endif
-#   if SANITIZER_FREEBSD
+#    if SANITIZER_FREEBSD
   // Ignore vDSO.
   if (internal_strcmp(info->dlpi_name, "[vdso]") == 0)
     return 0;
-#   endif
+#    endif
 
   *name = info->dlpi_name;
   return 1;

``````````

</details>


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


More information about the llvm-commits mailing list