CapPtr: remove a stale static assert

In the new world order, we will actually operate on AllocUser-bound pointers,
such as slabs' free lists.
This commit is contained in:
Nathaniel Wesley Filardo
2021-08-16 20:58:11 +01:00
committed by Nathaniel Wesley Filardo
parent 9065893181
commit ca70856dc1

View File

@@ -246,15 +246,6 @@ namespace snmalloc
SNMALLOC_FAST_PATH T* operator->() const
{
/*
* Alloc-bounded, platform-constrained pointers are associated with
* objects coming from or going to the client; we should be doing nothing
* with them.
*/
static_assert(
(bounds::spatial != capptr::dimension::Spatial::Alloc) ||
(bounds::address_space_control !=
capptr::dimension::AddressSpaceControl::User));
return this->unsafe_capptr;
}