[compiler-rt] [compiler-rt][asan] _aligned_malloc/_aligned_free interception. (PR #82049)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 14:13:10 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 450462cbaceddf57812ce15b5135b17f65a77654 0d22af1e2abd0b4a8ca340ee71cbe6fa07b8a689 -- compiler-rt/lib/asan/asan_malloc_win.cpp compiler-rt/lib/asan/asan_win_dll_thunk.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/asan/asan_malloc_win.cpp b/compiler-rt/lib/asan/asan_malloc_win.cpp
index 01428a7c58..01939eb700 100644
--- a/compiler-rt/lib/asan/asan_malloc_win.cpp
+++ b/compiler-rt/lib/asan/asan_malloc_win.cpp
@@ -178,9 +178,7 @@ void *_aligned_malloc(size_t alignment, size_t size) {
 }
 
 ALLOCATION_FUNCTION_ATTRIBUTE
-void *_aligned_free(void *p) {
-  free(p);
-}
+void *_aligned_free(void *p) { free(p); }
 
 ALLOCATION_FUNCTION_ATTRIBUTE
 void *_expand(void *memblock, size_t size) {

``````````

</details>


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


More information about the llvm-commits mailing list