diff --git a/libunwind/src/AddressSpace.hpp b/libunwind/src/AddressSpace.hpp index 56e5de51e334..5ef584e7d3c1 100644 --- a/libunwind/src/AddressSpace.hpp +++ b/libunwind/src/AddressSpace.hpp @@ -247,7 +247,8 @@ class _LIBUNWIND_HIDDEN LocalAddressSpace { } bool isNull() const { return value == nullptr; } bool isValid() const { -#ifdef __CHERI_PURE_CAPABILITY__ +#if defined(__CHERI_PURE_CAPABILITY__) && \ + !defined(__ARM_MORELLO_PURECAP_BENCHMARK_ABI) return __builtin_cheri_tag_get(value); #else return !isNull();