diff options
| -rw-r--r-- | clang/include/clang/AST/DeclCXX.h | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/clang/include/clang/AST/DeclCXX.h b/clang/include/clang/AST/DeclCXX.h index a5cf9ca9926..755542c04a1 100644 --- a/clang/include/clang/AST/DeclCXX.h +++ b/clang/include/clang/AST/DeclCXX.h @@ -2165,17 +2165,18 @@ public:  /// \endcode  class CXXConstructorDecl : public CXXMethodDecl {    void anchor() override; -  /// \brief Whether this constructor declaration has the \c explicit keyword -  /// specified. -  bool IsExplicitSpecified : 1;    /// \name Support for base and member initializers.    /// \{    /// \brief The arguments used to initialize the base or member.    LazyCXXCtorInitializersPtr CtorInitializers; -  unsigned NumCtorInitializers; +  unsigned NumCtorInitializers : 31;    /// \} +  /// \brief Whether this constructor declaration has the \c explicit keyword +  /// specified. +  unsigned IsExplicitSpecified : 1; +    CXXConstructorDecl(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,                       const DeclarationNameInfo &NameInfo,                       QualType T, TypeSourceInfo *TInfo, @@ -2183,8 +2184,8 @@ class CXXConstructorDecl : public CXXMethodDecl {                       bool isImplicitlyDeclared, bool isConstexpr)      : CXXMethodDecl(CXXConstructor, C, RD, StartLoc, NameInfo, T, TInfo,                      SC_None, isInline, isConstexpr, SourceLocation()), -      IsExplicitSpecified(isExplicitSpecified), CtorInitializers(nullptr), -      NumCtorInitializers(0) { +      CtorInitializers(nullptr), NumCtorInitializers(0), +      IsExplicitSpecified(isExplicitSpecified) {      setImplicit(isImplicitlyDeclared);    }  | 

