[llvm] Revert "[ADT] Deprecate the redirection from SmallSet to SmallPtrSet (Take 2) (#155078) (PR #155622)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 27 07:34:45 PDT 2025


https://github.com/joker-eph updated https://github.com/llvm/llvm-project/pull/155622

>From 19fbe39fc2437619e812a3ce9f5b3c2dbbc139e0 Mon Sep 17 00:00:00 2001
From: Mehdi Amini <joker.eph at gmail.com>
Date: Wed, 27 Aug 2025 06:41:42 -0700
Subject: [PATCH] Revert "[ADT] Deprecate the redirection from SmallSet to
 SmallPtrSet (Take 2) (#155078)"

This reverts commit 9b493dcad25941911af94bd6a63fea5fb187b870.

There are hundreds of warnings when building LLVM/Clang because of this right now.
See the original PR for the detailed issues.

Also revert the follow-up fix "[ADT] Fix redirection of SmallSet to SmallPtrSet (#155117)"
This reverts commit 3ca1ca4301703ceadd0ab9c0b156bd6c0a3af7ec.
---
 llvm/include/llvm/ADT/SmallSet.h | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h
index 4c60b15224a45..7d8c328758d53 100644
--- a/llvm/include/llvm/ADT/SmallSet.h
+++ b/llvm/include/llvm/ADT/SmallSet.h
@@ -268,17 +268,8 @@ class SmallSet {
 
 /// If this set is of pointer values, transparently switch over to using
 /// SmallPtrSet for performance.
-///
-/// We use this middleman class DeprecatedSmallSet so that the deprecation
-/// warning works.  Placing LLVM_DEPRECATED just before SmallSet below won't
-/// work.
-template <typename PointerType, unsigned N>
-class LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet")
-    DeprecatedSmallSet : public SmallPtrSet<PointerType, N> {};
-
 template <typename PointeeType, unsigned N>
-class SmallSet<PointeeType *, N> : public DeprecatedSmallSet<PointeeType *, N> {
-};
+class SmallSet<PointeeType *, N> : public SmallPtrSet<PointeeType *, N> {};
 
 /// Equality comparison for SmallSet.
 ///



More information about the llvm-commits mailing list