aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/system_error.cpp
diff options
context:
space:
mode:
authorKonstantin Varlamov <varconsteq@gmail.com>2024-01-05 16:29:23 -0800
committerGitHub <noreply@github.com>2024-01-05 16:29:23 -0800
commit4f215fdd62d3f014750339eab9a46946b6fb1c4a (patch)
tree8dd112e96f98e91c1bc5d3807508169a351b24ac /libcxx/src/system_error.cpp
parent5e54319b7be3e8aa035836098e0a9defc0a41c3a (diff)
downloadllvm-4f215fdd62d3f014750339eab9a46946b6fb1c4a.zip
llvm-4f215fdd62d3f014750339eab9a46946b6fb1c4a.tar.gz
llvm-4f215fdd62d3f014750339eab9a46946b6fb1c4a.tar.bz2
[libc++][hardening] Categorize more assertions. (#75918)
Also introduce `_LIBCPP_ASSERT_PEDANTIC` for assertions violating which results in a no-op or other benign behavior, but which may nevertheless indicate a bug in the invoking code.
Diffstat (limited to 'libcxx/src/system_error.cpp')
-rw-r--r--libcxx/src/system_error.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/system_error.cpp b/libcxx/src/system_error.cpp
index 034b73c..f518b48 100644
--- a/libcxx/src/system_error.cpp
+++ b/libcxx/src/system_error.cpp
@@ -68,7 +68,7 @@ __attribute__((unused)) const char* handle_strerror_r_return(int strerror_return
if (new_errno == EINVAL)
return "";
- _LIBCPP_ASSERT_UNCATEGORIZED(new_errno == ERANGE, "unexpected error from ::strerror_r");
+ _LIBCPP_ASSERT_INTERNAL(new_errno == ERANGE, "unexpected error from ::strerror_r");
// FIXME maybe? 'strerror_buff_size' is likely to exceed the
// maximum error size so ERANGE shouldn't be returned.
std::abort();