From e415b0bf732eeb11c8575234133d2deb71feac82 Mon Sep 17 00:00:00 2001 From: Ben Langmuir 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 +template class LLVM_DEPRECATED("Use SmallPtrSet instead", "SmallPtrSet") - DeprecatedSmallSet : public SmallPtrSet {}; + DeprecatedSmallSet : public SmallPtrSet {}; template class SmallSet : public DeprecatedSmallSet {