[PATCH] D23898: Minor cleanup of MismatchingNewDeleteDetector
Alexander Shaposhnikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 1 16:26:22 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL280426: Remove excessive padding from MismatchingNewDeleteDetector (authored by alexshap).
Changed prior to commit:
https://reviews.llvm.org/D23898?vs=69306&id=70094#toc
Repository:
rL LLVM
https://reviews.llvm.org/D23898
Files:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Index: cfe/trunk/lib/Sema/SemaExprCXX.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp
+++ cfe/trunk/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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23898.70094.patch
Type: text/x-patch
Size: 1144 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160901/136fc8d4/attachment.bin>
More information about the cfe-commits
mailing list