From c4d29b97186e1b0963e85b5f362c77881bb7a254 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 22 Oct 2025 13:17:28 -0700 Subject: [PATCH] [ADT] Rename identity_cxx20 to identity Now that the old llvm::identity has moved into IndexedMap.h under a different name, this patch renames identity_cxx20 to identity. Note that llvm::identity closely models std::identity from C++20. --- llvm/include/llvm/ADT/STLForwardCompat.h | 2 +- llvm/include/llvm/ADT/SparseMultiSet.h | 2 +- llvm/include/llvm/ADT/SparseSet.h | 2 +- llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h | 2 +- llvm/include/llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h | 2 +- llvm/lib/CodeGen/RegAllocFast.cpp | 2 +- llvm/unittests/ADT/STLForwardCompatTest.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/include/llvm/ADT/STLForwardCompat.h b/llvm/include/llvm/ADT/STLForwardCompat.h index 9c81981534506..e02694f043fbb 100644 --- a/llvm/include/llvm/ADT/STLForwardCompat.h +++ b/llvm/include/llvm/ADT/STLForwardCompat.h @@ -125,7 +125,7 @@ struct detector>, Op, Args...> { template