diff options
author | Alexander Shaposhnikov <shal1t712@gmail.com> | 2016-09-01 23:18:00 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <shal1t712@gmail.com> | 2016-09-01 23:18:00 +0000 |
commit | 3087b2cf2ba1454b2aadee0cceefd5e2f71b50a8 (patch) | |
tree | 2f9b9d93e97da4f86757fae8f744c67928e49184 | |
parent | bc4e5bba0e8895604bae24fd82fd454a9e61ff40 (diff) | |
download | bcm5719-llvm-3087b2cf2ba1454b2aadee0cceefd5e2f71b50a8.tar.gz bcm5719-llvm-3087b2cf2ba1454b2aadee0cceefd5e2f71b50a8.zip |
Remove excessive padding from MismatchingNewDeleteDetector
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
Differential revision: https://reviews.llvm.org/D23898
llvm-svn: 280426
-rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index b7a968e09d4..f49d2663953 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -2593,7 +2593,7 @@ public: /// 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 @@ public: /// \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; |