aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-02-27 21:58:09 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2025-02-27 22:03:50 +0000
commite8302282cdb53ae1d347c12d7a50c4209fbab4f7 (patch)
treef6f0bdf910c313fc07abadbf81563144b2ace808
parent8371e7f240c1130a3827be1afb94f73c26df81a6 (diff)
downloadgcc-e8302282cdb53ae1d347c12d7a50c4209fbab4f7.zip
gcc-e8302282cdb53ae1d347c12d7a50c4209fbab4f7.tar.gz
gcc-e8302282cdb53ae1d347c12d7a50c4209fbab4f7.tar.bz2
libstdc++: Fix outdated comment in <stacktrace>
My r15-998-g2a83084ce55363 change replaced the use of nothrow operator new with a call to __get_temporary_buffer, so update the comment to match. libstdc++-v3/ChangeLog: * include/std/stacktrace (_Impl::_M_allocate): Fix outdated comment.
-rw-r--r--libstdc++-v3/include/std/stacktrace2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/stacktrace b/libstdc++-v3/include/std/stacktrace
index f94a424..4911222 100644
--- a/libstdc++-v3/include/std/stacktrace
+++ b/libstdc++-v3/include/std/stacktrace
@@ -559,7 +559,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
if constexpr (is_same_v<allocator_type, allocator<value_type>>)
{
- // For std::allocator we use nothrow-new directly so we
+ // Use non-throwing __get_temporary_buffer, so that we
// don't need to handle exceptions from __alloc.allocate(n).
auto __p = __detail::__get_temporary_buffer<value_type>(__n);
if (__p == nullptr) [[unlikely]]