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