diff options
Diffstat (limited to 'compiler-rt/test/sanitizer_common')
-rw-r--r-- | compiler-rt/test/sanitizer_common/sanitizer_specific.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/sanitizer_common/sanitizer_specific.h b/compiler-rt/test/sanitizer_common/sanitizer_specific.h index 921ff14..759236a 100644 --- a/compiler-rt/test/sanitizer_common/sanitizer_specific.h +++ b/compiler-rt/test/sanitizer_common/sanitizer_specific.h @@ -52,7 +52,7 @@ static void make_mem_bad(void *p, size_t s) { // With misaligned `p` or short granules we can't guarantee tag mismatch. if (__hwasan_test_shadow(p, s) != 0) abort(); - if (s > 1 && __hwasan_test_shadow((reinterpret_cast<char*>(p) + s - 1, 1) != 0) + if (s > 1 && __hwasan_test_shadow(((char*)p) + s - 1, 1) != 0) abort(); } #else |