2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-21 02:52:12 +00:00

Debug CI crash 8/n [skip ci]

This commit is contained in:
Rene Rivera
2022-04-11 11:55:39 -05:00
parent 055dd41f1b
commit cadb1cfadb

View File

@@ -340,10 +340,7 @@ struct _stack
{
using U = remove_cref_t<T>;
U result = std::move(top<U>());
check_alignment();
data = (char *)data + sizeof(U);
check_alignment();
--cleanups_size;
pop<T>( 1 );
return result;
}
@@ -351,8 +348,9 @@ struct _stack
template <class T>
void pop( int32_t n )
{
using U = remove_cref_t<T>;
check_alignment();
data = (char *)data + ( n * sizeof(remove_cref_t<T>) );
data = reinterpret_cast<U*>( data ) + n;
check_alignment();
--cleanups_size;
}