From f6247aad9de4a2ef7678add575089bda3727d9ed Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Wed, 25 Nov 2020 05:36:56 -0800 Subject: [PATCH] Fix SyscallTable::get to return proper table PiperOrigin-RevId: 344236195 Change-Id: Ie370c1a771f1896c98ea387c0a84231a433c9d8c --- sandboxed_api/sandbox2/syscall_defs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxed_api/sandbox2/syscall_defs.cc b/sandboxed_api/sandbox2/syscall_defs.cc index b1de336..b7b98cb 100644 --- a/sandboxed_api/sandbox2/syscall_defs.cc +++ b/sandboxed_api/sandbox2/syscall_defs.cc @@ -1519,7 +1519,7 @@ constexpr std::array kSyscallDataArm64 = { #undef SYSCALLS_UNUSED SyscallTable SyscallTable::get(cpu::Architecture arch) { - switch (host_cpu::Architecture()) { + switch (arch) { case cpu::kX8664: return SyscallTable(kSyscallDataX8664); case cpu::kX86: