File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
compiler-rt/lib/scudo/standalone Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 18
18
19
19
namespace scudo {
20
20
21
+ #if (__clang_major__ >= 12 && defined(__aarch64__) && !defined(__ILP32__)) || \
22
+ defined (SCUDO_FUZZ)
23
+
21
24
// We assume that Top-Byte Ignore is enabled if the architecture supports memory
22
25
// tagging. Not all operating systems enable TBI, so we only claim architectural
23
26
// support for memory tagging if the operating system enables TBI.
24
27
// HWASan uses the top byte for its own purpose and Scudo should not touch it.
25
- #if (__clang_major__ >= 12 && defined(__aarch64__) && !defined(__ILP32__) && \
26
- SCUDO_LINUX && !defined(SCUDO_DISABLE_TBI) && \
27
- !__has_feature(hwaddress_sanitizer)) || \
28
- defined (SCUDO_FUZZ)
29
-
28
+ #if SCUDO_LINUX && !defined(SCUDO_DISABLE_TBI) && \
29
+ !__has_feature(hwaddress_sanitizer)
30
30
inline constexpr bool archSupportsMemoryTagging () { return true ; }
31
+ #else
32
+ inline constexpr bool archSupportsMemoryTagging () { return false ; }
33
+ #endif
31
34
32
35
inline constexpr uptr archMemoryTagGranuleSize () { return 16 ; }
33
36
You can’t perform that action at this time.
0 commit comments