Fix SyscallTable::get to return proper table

PiperOrigin-RevId: 344236195
Change-Id: Ie370c1a771f1896c98ea387c0a84231a433c9d8c
This commit is contained in:
Wiktor Garbacz 2020-11-25 05:36:56 -08:00 committed by Copybara-Service
parent 510b5079ed
commit f6247aad9d

View File

@ -1519,7 +1519,7 @@ constexpr std::array kSyscallDataArm64 = {
#undef SYSCALLS_UNUSED #undef SYSCALLS_UNUSED
SyscallTable SyscallTable::get(cpu::Architecture arch) { SyscallTable SyscallTable::get(cpu::Architecture arch) {
switch (host_cpu::Architecture()) { switch (arch) {
case cpu::kX8664: case cpu::kX8664:
return SyscallTable(kSyscallDataX8664); return SyscallTable(kSyscallDataX8664);
case cpu::kX86: case cpu::kX86: