From 24c9be35101f97542801ade1db3cf12534d0fa60 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 30 Aug 2017 22:51:50 +0000 Subject: [PATCH] [Sema] Make SpecialMemberDecl a PointerIntPair so we can stash it in a SmallPtrSet. We have enough spare bits in the alignment of CXXRecordDecl. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312186 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Sema.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 70ee299423..0ba761573d 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -1121,12 +1121,13 @@ public: CXXInvalid }; - typedef std::pair SpecialMemberDecl; + typedef llvm::PointerIntPair + SpecialMemberDecl; /// The C++ special members which we are currently in the process of /// declaring. If this process recursively triggers the declaration of the /// same special member, we should act as if it is not yet declared. - llvm::SmallSet SpecialMembersBeingDeclared; + llvm::SmallPtrSet SpecialMembersBeingDeclared; /// The function definitions which were renamed as part of typo-correction /// to match their respective declarations. We want to keep track of them -- 2.40.0