[llvm] [ADT] Fix redirection of SmallSet to SmallPtrSet (PR #155117)
Ben Langmuir via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 23 11:50:27 PDT 2025
https://github.com/benlangmuir created https://github.com/llvm/llvm-project/pull/155117
The previous version introduce an extra level of pointer indirection.
>From e415b0bf732eeb11c8575234133d2deb71feac82 Mon Sep 17 00:00:00 2001
From: Ben Langmuir <blangmuir at apple.com>
Date: Sat, 23 Aug 2025 11:45:35 -0700
Subject: [PATCH] [ADT] Fix redirection of SmallSet to SmallPtrSet
The previous version introduce an extra level of pointer indirection.
---
llvm/include/llvm/ADT/SmallSet.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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