[compiler-rt] e0c4454 - [Darwin][ASan][Sanitizer] Fixes Sanitizer NonUnique Identifier to Account for Mac arm64 architectures.
Blue Gaston via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 13 21:16:18 PDT 2022
Author: Blue Gaston
Date: 2022-04-13T21:11:37-07:00
New Revision: e0c44544655d0f799831004962b1f22fece31c5e
URL: https://github.com/llvm/llvm-project/commit/e0c44544655d0f799831004962b1f22fece31c5e
DIFF: https://github.com/llvm/llvm-project/commit/e0c44544655d0f799831004962b1f22fece31c5e.diff
LOG: [Darwin][ASan][Sanitizer] Fixes Sanitizer NonUnique Identifier to Account for Mac arm64 architectures.
Current check assumes iOS as the only Apple devices running arm64.
```#if SANITIZER_MAC && !(defined(__arm64__) && SANITIZER_IOS)```
Stops Apple Silicon from being flagged as requiring unique RTTI.
This introduced unexpected behavior within the sanitizer.
rdar://91446703
Differential Revision: https://reviews.llvm.org/D123736
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index 8ff9f977bf589..e22cc6a0330ff 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -340,7 +340,7 @@
# define MSC_PREREQ(version) 0
#endif
-#if SANITIZER_MAC && !(defined(__arm64__) && SANITIZER_IOS)
+#if SANITIZER_MAC && defined (__x86_64__)
# define SANITIZER_NON_UNIQUE_TYPEINFO 0
#else
# define SANITIZER_NON_UNIQUE_TYPEINFO 1
More information about the llvm-commits
mailing list