mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1679492 - Move away from using mozilla::tl::And. r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D175761
This commit is contained in:
parent
76ed086766
commit
9ed92a7918
@ -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...));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user