[compiler-rt] [ubsan] Use internal_memcpy to copy ubsan bits size (PR #121586)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 09:26:36 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 3c700d131a35ce4b0063a4688dce4a0cb739ca83 4063ff6597f4893b06991696292e708d8ad21f4f --extensions h -- compiler-rt/lib/ubsan/ubsan_value.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/ubsan/ubsan_value.h b/compiler-rt/lib/ubsan/ubsan_value.h
index 058de943ba..ee523cf5dd 100644
--- a/compiler-rt/lib/ubsan/ubsan_value.h
+++ b/compiler-rt/lib/ubsan/ubsan_value.h
@@ -152,10 +152,10 @@ public:
DCHECK(isIntegerTy());
if (isSignedBitIntTy()) {
u32 BitCountValue;
- internal_memcpy(&BitCountValue, getBitIntBitCountPointer(), sizeof(BitCountValue));
+ internal_memcpy(&BitCountValue, getBitIntBitCountPointer(),
+ sizeof(BitCountValue));
return BitCountValue;
- }
- else
+ } else
return getIntegerBitWidth();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/121586
More information about the llvm-commits
mailing list