[compiler-rt] [asan] NFC: tag ambiguous literal args at Allocate call sites (PR #200615)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 30 15:38:50 PDT 2026
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 origin/main HEAD --extensions cpp -- compiler-rt/lib/asan/asan_allocator.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/asan/asan_allocator.cpp b/compiler-rt/lib/asan/asan_allocator.cpp
index ae755ca60..e6481c9d0 100644
--- a/compiler-rt/lib/asan/asan_allocator.cpp
+++ b/compiler-rt/lib/asan/asan_allocator.cpp
@@ -798,7 +798,7 @@ struct Allocator {
thread_stats.reallocs++;
thread_stats.realloced += new_size;
- void *new_ptr = Allocate(new_size, /*alignment=*/8, stack, FROM_MALLOC,
+ void* new_ptr = Allocate(new_size, /*alignment=*/8, stack, FROM_MALLOC,
/*can_fill=*/true);
if (new_ptr) {
u8 chunk_state = atomic_load(&m->chunk_state, memory_order_acquire);
@@ -1162,7 +1162,7 @@ int asan_posix_memalign(void **memptr, uptr alignment, uptr size,
return errno_EINVAL;
ReportInvalidPosixMemalignAlignment(alignment, stack);
}
- void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC,
+ void* ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC,
/*can_fill=*/true);
if (UNLIKELY(!ptr))
// OOM error is already taken care of by Allocate.
``````````
</details>
https://github.com/llvm/llvm-project/pull/200615
More information about the llvm-commits
mailing list