[compiler-rt] [compiler-rt] Add a prefix on the windows mmap symbols (PR #78037)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 13 15:27:41 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 66786a79d6f622012879e94a92838449bf175a71 75956a807f08f73fe4909c39e9d8a63cfcc3e168 -- compiler-rt/lib/profile/WindowsMMap.c compiler-rt/lib/profile/WindowsMMap.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/profile/WindowsMMap.c b/compiler-rt/lib/profile/WindowsMMap.c
index 1bf7c807eb..9d7da835b1 100644
--- a/compiler-rt/lib/profile/WindowsMMap.c
+++ b/compiler-rt/lib/profile/WindowsMMap.c
@@ -124,8 +124,7 @@ int madvise(void *addr, size_t length, int advice)
   return 0;
 }
 
-static
-int lock(HANDLE handle, DWORD lockType, BOOL blocking) {
+static int lock(HANDLE handle, DWORD lockType, BOOL blocking) {
   DWORD flags = lockType;
   if (!blocking)
     flags |= LOCKFILE_FAIL_IMMEDIATELY;

``````````

</details>


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


More information about the llvm-commits mailing list