[libc-commits] [libc] [libc][math] Fix build failures caused by constexpr (PR #181920)

via libc-commits libc-commits at lists.llvm.org
Tue Feb 17 14:04:26 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Muhammad Bassiouni (bassiounix)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/181920.diff


1 Files Affected:

- (modified) libc/src/__support/math/bf16divf.h (+1-1) 


``````````diff
diff --git a/libc/src/__support/math/bf16divf.h b/libc/src/__support/math/bf16divf.h
index ad5cb57aac828..0e201f8a124ed 100644
--- a/libc/src/__support/math/bf16divf.h
+++ b/libc/src/__support/math/bf16divf.h
@@ -17,7 +17,7 @@ namespace LIBC_NAMESPACE_DECL {
 
 namespace math {
 
-LIBC_INLINE constexpr bfloat16 bf16divf(float x, float y) {
+LIBC_INLINE bfloat16 bf16divf(float x, float y) {
   return fputil::generic::div<bfloat16>(x, y);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/181920


More information about the libc-commits mailing list