[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / src / any.cpp
blob0cf09068837dbe59d6e2dbbe5a4d3af23a66af9d
1 //===---------------------------- any.cpp ---------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "any"
11 namespace std {
12 const char* bad_any_cast::what() const _NOEXCEPT {
13 return "bad any cast";
18 #include <experimental/__config>
20 // Preserve std::experimental::any_bad_cast for ABI compatibility
21 // Even though it no longer exists in a header file
22 _LIBCPP_BEGIN_NAMESPACE_LFTS
24 class _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast
26 public:
27 virtual const char* what() const _NOEXCEPT;
30 const char* bad_any_cast::what() const _NOEXCEPT {
31 return "bad any cast";
34 _LIBCPP_END_NAMESPACE_LFTS