[ADT] Make `llvm::identity` a transparent function object
`llvm::identity` is similar to `std::identity` from C++20, but one surprising thing is that `llvm::identity` is not a transparent function object. Add the `is_transparent` type alias to denote it can be used as a transparent function object. Differential Revision: https://reviews.llvm.org/D132628
Loading
Please sign in to comment