[asan] Add "arm64" into the list of 64-bit architectures

It looks like get_bits_for_arch doesn't recognize "arm64" as a 64-bit architecture, and it actually matches the "arm" regexp, which marks it as 32-bit. Let's fix that by matching the 64-bit list first and addin "arm64" into the list.

Differential Revision: https://reviews.llvm.org/D43155

llvm-svn: 325300
This commit is contained in:
Kuba Mracek 2018-02-15 22:14:36 +00:00
parent ff2763a658
commit 9967378eba
1 changed files with 3 additions and 3 deletions

View File

@ -18,10 +18,10 @@ if (SHADOW_MAPPING_UNRELIABLE)
endif()
macro(get_bits_for_arch arch bits)
if (${arch} MATCHES "i386|arm|mips|mipsel")
set(${bits} 32)
elseif (${arch} MATCHES "x86_64|powerpc64|powerpc64le|aarch64|mips64|mips64el|s390x")
if (${arch} MATCHES "x86_64|powerpc64|powerpc64le|aarch64|arm64|mips64|mips64el|s390x")
set(${bits} 64)
elseif (${arch} MATCHES "i386|arm|mips|mipsel")
set(${bits} 32)
else()
message(FATAL_ERROR "Unknown target architecture: ${arch}")
endif()