diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-12-13 14:21:37 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-12-13 14:21:37 -0800 |
commit | dad3b1a6c02a1c48d9ccc1a8bd2ec2f363eb1a40 (patch) | |
tree | a495e4de37d5ca0f74aaa6a4eec05ab14666ffe9 /compiler-rt/test/sanitizer_common/sanitizer_specific.h | |
parent | 7af834fc25a38ad0050ba8c28df43d548ae89497 (diff) | |
parent | 8bea83b8f5adae8abc5d6a6695c756a616201aa7 (diff) | |
download | llvm-dad3b1a6c02a1c48d9ccc1a8bd2ec2f363eb1a40.zip llvm-dad3b1a6c02a1c48d9ccc1a8bd2ec2f363eb1a40.tar.gz llvm-dad3b1a6c02a1c48d9ccc1a8bd2ec2f363eb1a40.tar.bz2 |
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.4
[skip ci]
Diffstat (limited to 'compiler-rt/test/sanitizer_common/sanitizer_specific.h')
-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 |