[PATCH] D55427: [libcxx] Use specialized helper for __bit_reference count

Marshall Clow via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 7 12:03:42 PST 2018


mclow.lists added a comment.

This looks like a behavior change to me.
The old code calls `__count_bool_true` if the `_Tp` can be `static_cast` to `bool`, and `__count_bool_false` otherwise.
The new code calls `__count_bool_true` if the `_Tp` is exactly `bool`, and `__count_bool_false` otherwise.


Repository:
  rCXX libc++

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

https://reviews.llvm.org/D55427





More information about the llvm-commits mailing list