libstdc++: Fix incorrect branch prediction hint in std::stacktrace

libstdc++-v3/ChangeLog:

	* include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate):
	Change [[unlikely]] attribute to [[likely]].
This commit is contained in:
Jonathan Wakely 2022-04-11 20:13:44 +01:00
parent 0508f0b810
commit b1124648ff

View File

@ -579,7 +579,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
__try
{
if (0 < __n && __n <= _S_max_size(__alloc)) [[unlikely]]
if (0 < __n && __n <= _S_max_size(__alloc)) [[likely]]
{
_M_frames = __alloc.allocate(__n);
_M_capacity = __n;