[flang][openacc] Keep CYCLE check for compute and data construct (#73897)
[llvm-project.git] / libcxxabi / src / stdlib_stdexcept.cpp
blob92f7a6e076c0f0a467208feb95f0f25a3fd4d3a1
1 //===----------------------------------------------------------------------===//
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 "stdexcept"
10 #include "new"
11 #include <cstdlib>
12 #include <cstring>
13 #include <cstdint>
14 #include <cstddef>
15 #include "include/refstring.h" // from libc++
17 static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char *), "");
19 namespace std // purposefully not using versioning namespace
22 logic_error::~logic_error() noexcept {}
24 const char*
25 logic_error::what() const noexcept
27 return __imp_.c_str();
30 runtime_error::~runtime_error() noexcept {}
32 const char*
33 runtime_error::what() const noexcept
35 return __imp_.c_str();
38 domain_error::~domain_error() noexcept {}
39 invalid_argument::~invalid_argument() noexcept {}
40 length_error::~length_error() noexcept {}
41 out_of_range::~out_of_range() noexcept {}
43 range_error::~range_error() noexcept {}
44 overflow_error::~overflow_error() noexcept {}
45 underflow_error::~underflow_error() noexcept {}
47 } // std