[all-commits] [llvm/llvm-project] 849e74: [libc++][NFC] Remove several redundant #if _LIBCPP...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Mar 14 10:53:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 849e749d7f82cba44bccf6261239139bc9019754
      https://github.com/llvm/llvm-project/commit/849e749d7f82cba44bccf6261239139bc9019754
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M libcxx/include/span

  Log Message:
  -----------
  [libc++][NFC] Remove several redundant #if _LIBCPP_STD_VER > 17 in <span>

It turns out that the whole header is only enabled in C++20 and above,
so these checks were redundant (and always true).

Differential Revision: https://reviews.llvm.org/D121604




More information about the All-commits mailing list