[compiler-rt] [compiler-rt] fix couple of netbsd build warnings. (PR #99745)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 20 00:36:30 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 867ff2d4268ca7eed89a24f100b67b68f5329439 cb9329a374c355b5a61a3fe582b418e9625f5d37 --extensions inc,cpp -- compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_printer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
index 57a3fd619e..ee3fd5b0a8 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_bsd.cpp
@@ -47,7 +47,8 @@ void GetMemoryProfile(fill_profile_f cb, uptr *stats) {
struct kinfo_proc2 *InfoProc;
uptr Len = sizeof(*InfoProc);
uptr Size = Len;
- const int Mib[] = {CTL_KERN, KERN_PROC2, KERN_PROC_PID, getpid(), (int)Size, 1};
+ const int Mib[] = {CTL_KERN, KERN_PROC2, KERN_PROC_PID,
+ getpid(), (int)Size, 1};
InfoProc = (struct kinfo_proc2 *)MmapOrDie(Size, "GetMemoryProfile()");
CHECK_EQ(
internal_sysctl(Mib, ARRAY_SIZE(Mib), nullptr, (uptr *)InfoProc, &Len, 0),
``````````
</details>
https://github.com/llvm/llvm-project/pull/99745
More information about the llvm-commits
mailing list