diff options
Diffstat (limited to 'standalone/memtag.h')
-rw-r--r-- | standalone/memtag.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/standalone/memtag.h b/standalone/memtag.h index 7578aff17be..7f14a30fee1 100644 --- a/standalone/memtag.h +++ b/standalone/memtag.h @@ -18,7 +18,8 @@ namespace scudo { -#if (__clang_major__ >= 12 && defined(__aarch64__)) || defined(SCUDO_FUZZ) +#if (__clang_major__ >= 12 && defined(__aarch64__) && !defined(__ILP32__)) || \ + defined(SCUDO_FUZZ) // We assume that Top-Byte Ignore is enabled if the architecture supports memory // tagging. Not all operating systems enable TBI, so we only claim architectural @@ -57,7 +58,7 @@ inline NORETURN uint8_t extractTag(uptr Ptr) { #endif -#if __clang_major__ >= 12 && defined(__aarch64__) +#if __clang_major__ >= 12 && defined(__aarch64__) && !defined(__ILP32__) #if SCUDO_LINUX |