]> granicus.if.org Git - clang/commitdiff
Wdeprecated: Support movability of EHScopeStack::Cleanup objects as they are move...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 18 Aug 2015 22:09:28 +0000 (22:09 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 18 Aug 2015 22:09:28 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245367 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/EHScopeStack.h

index 8cad5b61eaf9368961595138e895233174365d2e..254133ca81f38e0cf2a99c242578dcb3a68aaf9f 100644 (file)
@@ -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 {