r245367 - Wdeprecated: Support movability of EHScopeStack::Cleanup objects as they are move constructed in ConditionalCleanup::restore

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 18 15:09:28 PDT 2015


Author: dblaikie
Date: Tue Aug 18 17:09:28 2015
New Revision: 245367

URL: http://llvm.org/viewvc/llvm-project?rev=245367&view=rev
Log:
Wdeprecated: Support movability of EHScopeStack::Cleanup objects as they are move constructed in ConditionalCleanup::restore

Modified:
    cfe/trunk/lib/CodeGen/EHScopeStack.h

Modified: cfe/trunk/lib/CodeGen/EHScopeStack.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/EHScopeStack.h?rev=245367&r1=245366&r2=245367&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/EHScopeStack.h (original)
+++ cfe/trunk/lib/CodeGen/EHScopeStack.h Tue Aug 18 17:09:28 2015
@@ -144,7 +144,12 @@ public:
   class Cleanup {
     // Anchor the construction vtable.
     virtual void anchor();
+
   public:
+    Cleanup(const Cleanup &) = default;
+    Cleanup(Cleanup &&) = default;
+    Cleanup() = default;
+
     /// Generation flags.
     class Flags {
       enum {




More information about the cfe-commits mailing list