alexshap created this revision. alexshap added reviewers: ismailp, rsmith, bkramer. alexshap added a subscriber: cfe-commits. alexshap set the repository for this revision to rL LLVM. alexshap changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users".
The class MismatchingNewDeleteDetector is in lib/Sema/SemaExprCXX.cpp inside the anonymous namespace. This diff reorders the fields and removes the excessive padding. Test plan: make -j8 check-clang Repository: rL LLVM https://reviews.llvm.org/D23898 Files: lib/Sema/SemaExprCXX.cpp Index: lib/Sema/SemaExprCXX.cpp =================================================================== --- lib/Sema/SemaExprCXX.cpp +++ lib/Sema/SemaExprCXX.cpp @@ -2593,7 +2593,7 @@ /// translation unit. False, if this is the initial analysis at the point /// delete-expression was encountered. explicit MismatchingNewDeleteDetector(bool EndOfTU) - : IsArrayForm(false), Field(nullptr), EndOfTU(EndOfTU), + : Field(nullptr), IsArrayForm(false), EndOfTU(EndOfTU), HasUndefinedConstructors(false) {} /// \brief Checks whether pointee of a delete-expression is initialized with @@ -2612,11 +2612,11 @@ /// \param DeleteWasArrayForm Array form-ness of the delete-expression used /// for deleting the \p Field. MismatchResult analyzeField(FieldDecl *Field, bool DeleteWasArrayForm); + FieldDecl *Field; /// List of mismatching new-expressions used for initialization of the pointee llvm::SmallVector<const CXXNewExpr *, 4> NewExprs; /// Indicates whether delete-expression was in array form. bool IsArrayForm; - FieldDecl *Field; private: const bool EndOfTU;
Index: lib/Sema/SemaExprCXX.cpp =================================================================== --- lib/Sema/SemaExprCXX.cpp +++ lib/Sema/SemaExprCXX.cpp @@ -2593,7 +2593,7 @@ /// translation unit. False, if this is the initial analysis at the point /// delete-expression was encountered. explicit MismatchingNewDeleteDetector(bool EndOfTU) - : IsArrayForm(false), Field(nullptr), EndOfTU(EndOfTU), + : Field(nullptr), IsArrayForm(false), EndOfTU(EndOfTU), HasUndefinedConstructors(false) {} /// \brief Checks whether pointee of a delete-expression is initialized with @@ -2612,11 +2612,11 @@ /// \param DeleteWasArrayForm Array form-ness of the delete-expression used /// for deleting the \p Field. MismatchResult analyzeField(FieldDecl *Field, bool DeleteWasArrayForm); + FieldDecl *Field; /// List of mismatching new-expressions used for initialization of the pointee llvm::SmallVector<const CXXNewExpr *, 4> NewExprs; /// Indicates whether delete-expression was in array form. bool IsArrayForm; - FieldDecl *Field; private: const bool EndOfTU;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits