diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-08-18 22:09:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-08-18 22:09:28 +0000 |
commit | fb2b796ecc9c986f487b9da9ca35c9553166f799 (patch) | |
tree | e8f40a0af9e834d328a248560cd46288849e8aa2 /clang/lib/CodeGen | |
parent | c6bb0e2a511dcb0adc57821f79b83fe00d3fb4da (diff) | |
download | bcm5719-llvm-fb2b796ecc9c986f487b9da9ca35c9553166f799.tar.gz bcm5719-llvm-fb2b796ecc9c986f487b9da9ca35c9553166f799.zip |
Wdeprecated: Support movability of EHScopeStack::Cleanup objects as they are move constructed in ConditionalCleanup::restore
llvm-svn: 245367
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/EHScopeStack.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h index 8cad5b61eaf..254133ca81f 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 { |