From: David Blaikie Date: Tue, 18 Aug 2015 22:09:28 +0000 (+0000) Subject: Wdeprecated: Support movability of EHScopeStack::Cleanup objects as they are move... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86081958ae8cd7d62f879cf54aabba8750c0f726;p=clang Wdeprecated: Support movability of EHScopeStack::Cleanup objects as they are move constructed in ConditionalCleanup::restore git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245367 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/EHScopeStack.h b/lib/CodeGen/EHScopeStack.h index 8cad5b61ea..254133ca81 100644 --- a/lib/CodeGen/EHScopeStack.h +++ b/lib/CodeGen/EHScopeStack.h @@ -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 {