diff --git a/llvm/include/llvm/ADT/identity.h b/llvm/include/llvm/ADT/identity.h --- a/llvm/include/llvm/ADT/identity.h +++ b/llvm/include/llvm/ADT/identity.h @@ -18,7 +18,9 @@ namespace llvm { +// Similar to `std::identity` from C++20. template struct identity { + using is_transparent = void; using argument_type = Ty; Ty &operator()(Ty &self) const {