[all-commits] [llvm/llvm-project] 8d5c0b: [libc++] Remove unnecessary reinterpret_cast from ...

Fanbo Meng via All-commits all-commits at lists.llvm.org
Mon Jun 28 07:00:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d5c0b8768f729d48e25251755ec12cfd785c934
      https://github.com/llvm/llvm-project/commit/8d5c0b8768f729d48e25251755ec12cfd785c934
  Author: Jonathan Crowther <jonathan.crowther at ibm.com>
  Date:   2021-06-28 (Mon, 28 Jun 2021)

  Changed paths:
    M libcxx/include/typeinfo

  Log Message:
  -----------
  [libc++] Remove unnecessary reinterpret_cast from typeinfo

In typeinfo there is a reinterpret_cast between a uintptr_t and size_t. These are two integer types and therefore a reinterpret_cast is not right for this situation. It looks like it may have been copied and pasted from above in the file. An implicit cast works in it's place.

Reviewed By: ldionne, #libc

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




More information about the All-commits mailing list