Ver código fonte

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244957 91177308-0d34-0410-b5e6-96231b3b80d8
David Blaikie 10 anos atrás
pai
commit
f61f0367ee
2 arquivos alterados com 0 adições e 3 exclusões
  1. 0 2
      include/clang/Sema/ScopeInfo.h
  2. 0 1
      lib/Sema/ScopeInfo.cpp

+ 0 - 2
include/clang/Sema/ScopeInfo.h

@@ -703,8 +703,6 @@ public:
     Kind = SK_Lambda;
   }
 
-  ~LambdaScopeInfo() override;
-
   /// \brief Note when all explicit captures have been added.
   void finishedExplicitCaptures() {
     NumExplicitCaptures = Captures.size();

+ 0 - 1
lib/Sema/ScopeInfo.cpp

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