[compiler-rt] [compiler-rt][nfc] Return size 0 explicitly when both pointers are NULL (PR #81789)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 13:07:57 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 a04c6366b156f508cdf84a32ef4484b53a6dabee 5513047493925e5ca08c31a0f5b17250e079fe4f -- compiler-rt/lib/profile/InstrProfilingBuffer.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/profile/InstrProfilingBuffer.c b/compiler-rt/lib/profile/InstrProfilingBuffer.c
index 50da912425..faaa9dfb55 100644
--- a/compiler-rt/lib/profile/InstrProfilingBuffer.c
+++ b/compiler-rt/lib/profile/InstrProfilingBuffer.c
@@ -93,7 +93,7 @@ uint64_t __llvm_profile_get_counters_size(const char *Begin, const char *End) {
COMPILER_RT_VISIBILITY
uint64_t __llvm_profile_get_num_bitmap_bytes(const char *Begin,
const char *End) {
- if (Begin == NULL && End == NULL)
+ if (Begin == NULL && End == NULL)
return 0;
return (End - Begin);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/81789
More information about the llvm-commits
mailing list