[all-commits] [llvm/llvm-project] 8ae404: [libc++] Make sure std::is_scalar returns true for...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Jan 21 17:15:23 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ae404a2f6ba553368498870c2b3e39484a6312d
      https://github.com/llvm/llvm-project/commit/8ae404a2f6ba553368498870c2b3e39484a6312d
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-01-21 (Tue, 21 Jan 2020)

  Changed paths:
    M libcxx/include/__config
    M libcxx/include/type_traits
    A libcxx/test/libcxx/type_traits/is_scalar.objc.pass.mm
    A libcxx/test/libcxx/utilities/optional/block.objc.pass.mm

  Log Message:
  -----------
  [libc++] Make sure std::is_scalar returns true for block types

Summary:
The compiler already treats them as scalar types, so the library should
too. Furthermore, this allows blocks to be used in more places, for
example in std::optional, which requires an object type.

rdar://problem/57892832

Reviewers: dexonsmith, EricWF, mclow.lists
Differential Revision: https://reviews.llvm.org/D72708




More information about the All-commits mailing list