[libc-commits] [libc] [libc][math] Fix a -Wshadow warning in add_sub.h (PR #196337)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Fri May 8 02:41:57 PDT 2026


kaladron wrote:

> Given that `OutFPBits` and `InFPBits` are the same in this if, I wonder if a separate local variable is at all needed. Maybe we could just modify and return the outer y_bits. But it probably doesn't matter too much either way.

To my eyes it looks like y_bits could be const and then reused.  But I don't know the code in this space that well.  @lntue ?

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


More information about the libc-commits mailing list