[PATCH] D67897: Fix __is_signed builtin

Zoe Carver via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 22 16:53:06 PDT 2019


zoecarver added a comment.

In D67897#1678388 <https://reviews.llvm.org/D67897#1678388>, @Quuxplusone wrote:

> But `std::is_signed_v<float>` needs to yield `false`. Isn't it cleaner to leave the compiler builtin matching the library type-trait, so that the library doesn't have to check for integral types separately?


The idea is that these will match the standard. I don't see anywhere where the standard says that floating-point types yield `false`. The currently libc++ implementation also yields true for your example.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67897/new/

https://reviews.llvm.org/D67897





More information about the cfe-commits mailing list