Bug 1679492 - Move away from using mozilla::tl::And. r=sergesanspaille

Differential Revision: https://phabricator.services.mozilla.com/D175761
This commit is contained in:
Andi-Bogdan Postelnicu 2023-04-18 12:42:13 +00:00
parent 76ed086766
commit 9ed92a7918

View File

@ -147,7 +147,9 @@ class SandboxPolicyCommon : public SandboxPolicyBase {
template <typename... Args>
static intptr_t DoSyscall(long nr, Args... args) {
static_assert(tl::And<(sizeof(Args) <= sizeof(void*))...>::value,
static_assert(std::conjunction_v<
std::conditional_t<(sizeof(Args) <= sizeof(void*)),
std::true_type, std::false_type>...>,
"each syscall arg is at most one word");
return ConvertError(syscall(nr, args...));
}