Skip to content

Commit c4e9a43

Browse files
committed
[libc] Fix a constexpr violation from b4e5529
In msan mode this calls __msan_unpoison, which isn't constexpr.
1 parent f7fc98a commit c4e9a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/FPUtil/except_value_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ template <typename T, size_t N> struct ExceptValues {
102102
// Helper functions to set results for exceptional cases.
103103
template <typename T> LIBC_INLINE T round_result_slightly_down(T value_rn) {
104104
volatile T tmp = value_rn;
105-
constexpr T MIN_NORMAL = FPBits<T>::min_normal().get_val();
105+
const T MIN_NORMAL = FPBits<T>::min_normal().get_val();
106106
tmp = tmp - MIN_NORMAL;
107107
return tmp;
108108
}

0 commit comments

Comments
 (0)