diff options
author | Dimitry Andric <dimitry@andric.com> | 2020-03-13 19:36:26 +0100 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2020-03-17 18:59:54 +0100 |
commit | 585a3cc31bb49f2a526dcb74dc9a980379193f93 (patch) | |
tree | 118b20871e2ab1cae9646d83c01dd1fc0d971ed6 /llvm/lib/CodeGen/RDFGraph.cpp | |
parent | 5d90f886bc022e7c9144a0ef08ea7ccde7e66030 (diff) | |
download | llvm-585a3cc31bb49f2a526dcb74dc9a980379193f93.zip llvm-585a3cc31bb49f2a526dcb74dc9a980379193f93.tar.gz llvm-585a3cc31bb49f2a526dcb74dc9a980379193f93.tar.bz2 |
Fix -Wdeprecated-copy-dtor and -Wdeprecated-dynamic-exception-spec warnings.
Summary:
The former are like:
libcxx/include/typeinfo:322:11: warning: definition of implicit copy constructor for 'bad_cast' is deprecated because it has a user-declared destructor [-Wdeprecated-copy-dtor]
virtual ~bad_cast() _NOEXCEPT;
^
libcxx/include/typeinfo:344:11: note: in implicit copy constructor for 'std::bad_cast' first required here
throw bad_cast();
^
Fix these by adding an explicitly defaulted copy constructor.
The latter are like:
libcxx/include/codecvt:105:37: warning: dynamic exception specifications are deprecated [-Wdeprecated-dynamic-exception-spec]
virtual int do_encoding() const throw();
^~~~~~~
Fix these by using the _NOEXCEPT macro instead.
Reviewers: EricWF, mclow.lists, ldionne, #libc
Reviewed By: EricWF, #libc
Subscribers: dexonsmith, libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D76150
Diffstat (limited to 'llvm/lib/CodeGen/RDFGraph.cpp')
0 files changed, 0 insertions, 0 deletions