]> granicus.if.org Git - clang/commitdiff
Wdeprecated: LambdaScopeInfos are copied in TreeTransform, so make sure they're copyable.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Aug 2015 21:23:08 +0000 (21:23 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Aug 2015 21:23:08 +0000 (21:23 +0000)
Partly addressed by r244843, but the explicit dtor in LambdaScopeInfo
was still thwarting the implicit copy ctor. This does remove the key
function from LambdaScopeInfo unfortunately, but it seems neater than
having to explicitly default any special members LambdaScopeInfo needs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244957 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/ScopeInfo.h
lib/Sema/ScopeInfo.cpp

index 472e294bd840d1e563c408ce6b7201314d5540d8..a267ed1c957b01707f71fba50a5d7c81c580cfb8 100644 (file)
@@ -703,8 +703,6 @@ public:
     Kind = SK_Lambda;
   }
 
-  ~LambdaScopeInfo() override;
-
   /// \brief Note when all explicit captures have been added.
   void finishedExplicitCaptures() {
     NumExplicitCaptures = Captures.size();
index f80eadf18d56dc13337f469c313ca4203c8f3545..ba8c3642bc8cb8d01f8ad1e72151e3441a338b0b 100644 (file)
@@ -234,5 +234,4 @@ void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl *&VD,
 
 FunctionScopeInfo::~FunctionScopeInfo() { }
 BlockScopeInfo::~BlockScopeInfo() { }
-LambdaScopeInfo::~LambdaScopeInfo() { }
 CapturedRegionScopeInfo::~CapturedRegionScopeInfo() { }