r244957 - Wdeprecated: LambdaScopeInfos are copied in TreeTransform, so make sure they're copyable.
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 14:23:08 PDT 2015
Author: dblaikie
Date: Thu Aug 13 16:23:08 2015
New Revision: 244957
URL: http://llvm.org/viewvc/llvm-project?rev=244957&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/Sema/ScopeInfo.h
cfe/trunk/lib/Sema/ScopeInfo.cpp
Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ScopeInfo.h?rev=244957&r1=244956&r2=244957&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/ScopeInfo.h (original)
+++ cfe/trunk/include/clang/Sema/ScopeInfo.h Thu Aug 13 16:23:08 2015
@@ -703,8 +703,6 @@ public:
Kind = SK_Lambda;
}
- ~LambdaScopeInfo() override;
-
/// \brief Note when all explicit captures have been added.
void finishedExplicitCaptures() {
NumExplicitCaptures = Captures.size();
Modified: cfe/trunk/lib/Sema/ScopeInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/ScopeInfo.cpp?rev=244957&r1=244956&r2=244957&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/ScopeInfo.cpp (original)
+++ cfe/trunk/lib/Sema/ScopeInfo.cpp Thu Aug 13 16:23:08 2015
@@ -234,5 +234,4 @@ void LambdaScopeInfo::getPotentialVariab
FunctionScopeInfo::~FunctionScopeInfo() { }
BlockScopeInfo::~BlockScopeInfo() { }
-LambdaScopeInfo::~LambdaScopeInfo() { }
CapturedRegionScopeInfo::~CapturedRegionScopeInfo() { }
More information about the cfe-commits
mailing list