[compiler-rt] [compiler-rt] intercept macos fpurge (PR #121669)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 14:44:07 PST 2025


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 a738d81cd2822698539b0482af48d49d91ea5a2e 139845ced2d266fb5ae625088bc30b8bb8d6dd71 --extensions h,inc -- compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
index d58ec9f4b6..87f56ad2f2 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -10272,7 +10272,8 @@ INTERCEPTOR(int, fpurge, __sanitizer_FILE *fp) {
   int res = REAL(fpurge)(fp);
   if (fp) {
     const FileMetadata *m = GetInterceptorMetadata(fp);
-    if (m) COMMON_INTERCEPTOR_INITIALIZE_RANGE(*m->addr, *m->size);
+    if (m)
+      COMMON_INTERCEPTOR_INITIALIZE_RANGE(*m->addr, *m->size);
   }
   return res;
 }

``````````

</details>


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


More information about the llvm-commits mailing list