-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[ADT] Fix redirection of SmallSet to SmallPtrSet #155117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The previous version introduce an extra level of pointer indirection.
|
@llvm/pr-subscribers-llvm-adt Author: Ben Langmuir (benlangmuir) ChangesThe previous version introduce an extra level of pointer indirection. Full diff: https://github.com/llvm/llvm-project/pull/155117.diff 1 Files Affected:
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> {
|
|
I spent a while trying to write a test or static_assert for this but couldn't find one that didn't emit a warning. The usual |
kazutakahirata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you for fixing this!
|
Unrelated test failure. Merging |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/15041 Here is the relevant piece of the build log for the reference |
…(Take 2) (llvm#155078)" This reverts commit 9b493dc. 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 (llvm#155117)" This reverts commit 3ca1ca4.
…(Take 2) (#155078) (#155622) This reverts commit 9b493dc. 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 3ca1ca4.
The previous version introduce an extra level of pointer indirection.