diff --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h index 8cad5b61eaf9..254133ca81f3 100644 --- a/clang/lib/CodeGen/EHScopeStack.h +++ b/clang/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 {