[all-commits] [llvm/llvm-project] 0809f6: [LLVM][Casting.h] Add trivial self-cast

Aman LaChapelle via All-commits all-commits at lists.llvm.org
Sun May 15 22:22:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0809f63826d36c89574d6ac056ebf46a4b6f29ff
      https://github.com/llvm/llvm-project/commit/0809f63826d36c89574d6ac056ebf46a4b6f29ff
  Author: bzcheeseman <aman.lachapelle at gmail.com>
  Date:   2022-05-15 (Sun, 15 May 2022)

  Changed paths:
    M llvm/include/llvm/Support/Casting.h
    M llvm/unittests/Support/Casting.cpp

  Log Message:
  -----------
  [LLVM][Casting.h] Add trivial self-cast

Casting from a type to itself should always be possible. Make this simple for all users, and add tests to ensure we keep being able to do this. Ref: https://reviews.llvm.org/D125543

Reviewed By: rriddle

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




More information about the All-commits mailing list