[libc-commits] [libc] [libc] Fix buildbot failures (PR #156733)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 3 11:56:47 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Krishna Pandey (krishna2803)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/156733.diff
1 Files Affected:
- (modified) libc/src/__support/FPUtil/bfloat16.h (+3-1)
``````````diff
diff --git a/libc/src/__support/FPUtil/bfloat16.h b/libc/src/__support/FPUtil/bfloat16.h
index b607fd68e838b..13e151208567d 100644
--- a/libc/src/__support/FPUtil/bfloat16.h
+++ b/libc/src/__support/FPUtil/bfloat16.h
@@ -29,7 +29,9 @@ struct BFloat16 {
LIBC_INLINE BFloat16() = default;
- template <typename T> LIBC_INLINE constexpr explicit BFloat16(T value) {
+ template <typename T>
+ LIBC_INLINE constexpr explicit BFloat16(T value)
+ : bits(static_cast<uint16_t>(0U)) {
if constexpr (cpp::is_floating_point_v<T>) {
bits = fputil::cast<bfloat16>(value).bits;
} else if constexpr (cpp::is_integral_v<T>) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/156733
More information about the libc-commits
mailing list