[Openmp-commits] [openmp] [openmp] fix DragonflyBSD's runtime build. (PR #82895)
via Openmp-commits
openmp-commits at lists.llvm.org
Sat Feb 24 11:11:28 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 60a904b2ad9842b93cc5fa0ad5bda5e22c550b7e 9182a878c783e979d3df7d9779fd7080d14e5757 -- openmp/runtime/src/z_Linux_util.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index 8c833b3af8..ac3fcbf78d 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -2154,8 +2154,10 @@ int __kmp_is_address_mapped(void *addr) {
proc = kvm_getprocs(fd, KERN_PROC_PID, getpid(), &num);
- if (kvm_read(fd, static_cast<uintptr_t>(proc->kp_paddr), &p, sizeof(p)) != sizeof(p) ||
- kvm_read(fd, reinterpret_cast<uintptr_t>(p.p_vmspace), &sp, sizeof(sp)) != sizeof(sp)) {
+ if (kvm_read(fd, static_cast<uintptr_t>(proc->kp_paddr), &p, sizeof(p)) !=
+ sizeof(p) ||
+ kvm_read(fd, reinterpret_cast<uintptr_t>(p.p_vmspace), &sp, sizeof(sp)) !=
+ sizeof(sp)) {
kvm_close(fd);
return 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/82895
More information about the Openmp-commits
mailing list