Skip to content

Commit de3af89

Browse files
authored
Merge pull request swiftlang#32726 from mikeash/fix-simulator-arm64-mask
[Runtime] Fix SWIFT_ISA_MASK for ARM64 simulators.
2 parents 9591caf + 17833be commit de3af89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/Private.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ class TypeInfo {
103103
// value here.
104104
# define SWIFT_ISA_MASK 0xfffffffffffffff8ULL
105105
# elif __arm64__
106-
# if __has_feature(ptrauth_calls)
106+
// ARM64 simulators always use the ARM64e mask.
107+
# if __has_feature(ptrauth_calls) || TARGET_OS_SIMULATOR
107108
# define SWIFT_ISA_MASK 0x007ffffffffffff8ULL
108109
# else
109110
# if TARGET_OS_OSX

0 commit comments

Comments
 (0)