]> granicus.if.org Git - clang/blobdiff - include/clang/Sema/ScopeInfo.h
Revert "[Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr."
[clang] / include / clang / Sema / ScopeInfo.h
index ce487f19efb7a995d40aa240970d851887df229e..112859b0627cb24a88f65b85f581b57199f36423 100644 (file)
@@ -19,7 +19,6 @@
 #include "clang/AST/Type.h"
 #include "clang/Basic/CapturedStmt.h"
 #include "clang/Basic/PartialDiagnostic.h"
-#include "clang/Sema/CleanupInfo.h"
 #include "clang/Sema/Ownership.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallSet.h"
@@ -683,7 +682,7 @@ public:
   bool ExplicitParams;
 
   /// \brief Whether any of the capture expressions requires cleanups.
-  CleanupInfo Cleanup;
+  bool ExprNeedsCleanups;
 
   /// \brief Whether the lambda contains an unexpanded parameter pack.
   bool ContainsUnexpandedParameterPack;
@@ -731,7 +730,7 @@ public:
   LambdaScopeInfo(DiagnosticsEngine &Diag)
     : CapturingScopeInfo(Diag, ImpCap_None), Lambda(nullptr),
       CallOperator(nullptr), NumExplicitCaptures(0), Mutable(false),
-      ExplicitParams(false), Cleanup{},
+      ExplicitParams(false), ExprNeedsCleanups(false),
       ContainsUnexpandedParameterPack(false), AutoTemplateParameterDepth(0),
       GLTemplateParameterList(nullptr) {
     Kind = SK_Lambda;