[libc-commits] [libc] [libc][math] Fix buildbot fails (PR #151186)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 29 09:58:47 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Krishna Pandey (krishna2803)
<details>
<summary>Changes</summary>
cc @<!-- -->lntue
---
Full diff: https://github.com/llvm/llvm-project/pull/151186.diff
1 Files Affected:
- (modified) libc/src/__support/FPUtil/cast.h (+2-3)
``````````diff
diff --git a/libc/src/__support/FPUtil/cast.h b/libc/src/__support/FPUtil/cast.h
index e6fad1be7d053..719b1eaa97ff4 100644
--- a/libc/src/__support/FPUtil/cast.h
+++ b/libc/src/__support/FPUtil/cast.h
@@ -66,9 +66,8 @@ cast(InType x) {
cpp::max(OutFPBits::FRACTION_LEN, InFPBits::FRACTION_LEN);
DyadicFloat<cpp::bit_ceil(MAX_FRACTION_LEN)> xd(x);
return xd.template as<OutType, /*ShouldSignalExceptions=*/true>();
- }
-
- return static_cast<OutType>(x);
+ } else
+ return static_cast<OutType>(x);
}
} // namespace LIBC_NAMESPACE::fputil
``````````
</details>
https://github.com/llvm/llvm-project/pull/151186
More information about the libc-commits
mailing list