From 86081958ae8cd7d62f879cf54aabba8750c0f726 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 18 Aug 2015 22:09:28 +0000 Subject: [PATCH] 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 --- lib/CodeGen/EHScopeStack.h | 5 +++++ 1 file changed, 5 insertions(+) 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 { -- 2.40.0