[libc-commits] [libc] 7f2a665 - [libc][math] Fix -Wshadow warnings in FMod.h (#196346)
via libc-commits
libc-commits at lists.llvm.org
Fri May 8 04:32:24 PDT 2026
Author: Nico Weber
Date: 2026-05-08T07:32:19-04:00
New Revision: 7f2a665d96d3e91f30b5cf1b138adee2b2938bee
URL: https://github.com/llvm/llvm-project/commit/7f2a665d96d3e91f30b5cf1b138adee2b2938bee
DIFF: https://github.com/llvm/llvm-project/commit/7f2a665d96d3e91f30b5cf1b138adee2b2938bee.diff
LOG: [libc][math] Fix -Wshadow warnings in FMod.h (#196346)
The using statement inside the lambda is redundant with the same using 4
lines up.
No behavior change.
Added:
Modified:
libc/src/__support/FPUtil/generic/FMod.h
Removed:
################################################################################
diff --git a/libc/src/__support/FPUtil/generic/FMod.h b/libc/src/__support/FPUtil/generic/FMod.h
index b74b8b7d1b18d..1a321231a8eb9 100644
--- a/libc/src/__support/FPUtil/generic/FMod.h
+++ b/libc/src/__support/FPUtil/generic/FMod.h
@@ -171,7 +171,6 @@ class FMod {
using StorageType = typename FPB::StorageType;
LIBC_INLINE static constexpr bool pre_check(T x, T y, T &out) {
- using FPB = fputil::FPBits<T>;
const T quiet_nan = FPB::quiet_nan().get_val();
FPB sx(x), sy(y);
if (LIBC_LIKELY(!sy.is_zero() && !sy.is_inf_or_nan() &&
More information about the libc-commits
mailing list