[llvm] [ADT] Fix redirection of SmallSet to SmallPtrSet (PR #155117)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 23 11:50:55 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-adt
Author: Ben Langmuir (benlangmuir)
<details>
<summary>Changes</summary>
The previous version introduce an extra level of pointer indirection.
---
Full diff: https://github.com/llvm/llvm-project/pull/155117.diff
1 Files Affected:
- (modified) llvm/include/llvm/ADT/SmallSet.h (+2-2)
``````````diff
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> {
``````````
</details>
https://github.com/llvm/llvm-project/pull/155117
More information about the llvm-commits
mailing list