Wdeprecated: LambdaScopeInfos are copied in TreeTransform, so make sure they're copyable.

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.

llvm-svn: 244957
This commit is contained in:
David Blaikie 2015-08-13 21:23:08 +00:00
parent 6646e4c193
commit 9ae479c521
2 changed files with 0 additions and 3 deletions

View 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();

View File

@ -234,5 +234,4 @@ void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl *&VD,
FunctionScopeInfo::~FunctionScopeInfo() { }
BlockScopeInfo::~BlockScopeInfo() { }
LambdaScopeInfo::~LambdaScopeInfo() { }
CapturedRegionScopeInfo::~CapturedRegionScopeInfo() { }