[llvm] 3ca1ca4 - [ADT] Fix redirection of SmallSet to SmallPtrSet (#155117)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 23 12:22:23 PDT 2025


Author: Ben Langmuir
Date: 2025-08-23T12:22:19-07:00
New Revision: 3ca1ca4301703ceadd0ab9c0b156bd6c0a3af7ec

URL: https://github.com/llvm/llvm-project/commit/3ca1ca4301703ceadd0ab9c0b156bd6c0a3af7ec
DIFF: https://github.com/llvm/llvm-project/commit/3ca1ca4301703ceadd0ab9c0b156bd6c0a3af7ec.diff

LOG: [ADT] Fix redirection of SmallSet to SmallPtrSet (#155117)

The previous version introduce an extra level of pointer indirection.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/SmallSet.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h
index 96a68fb8da0e2..4c60b15224a45 100644
--- a/llvm/include/llvm/ADT/SmallSet.h
+++ b/llvm/include/llvm/ADT/SmallSet.h
@@ -272,9 +272,9 @@ class SmallSet {
 /// We use this middleman class DeprecatedSmallSet so that the deprecation
 /// warning works.  Placing LLVM_DEPRECATED just before SmallSet below won't
 /// work.
-template <typename PointeeType, unsigned N>
+template <typename PointerType, unsigned N>
 class LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet")
-    DeprecatedSmallSet : public SmallPtrSet<PointeeType *, N> {};
+    DeprecatedSmallSet : public SmallPtrSet<PointerType, N> {};
 
 template <typename PointeeType, unsigned N>
 class SmallSet<PointeeType *, N> : public DeprecatedSmallSet<PointeeType *, N> {


        


More information about the llvm-commits mailing list