Skip to content

Commit d63bcf7

Browse files
authored
[Runtime] Fix SWIFT_ISA_MASK for ARM64 simulators. (swiftlang#32739)
rdar://problem/65059017
1 parent ad727b4 commit d63bcf7

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
@@ -104,7 +104,8 @@ class TypeInfo {
104104
// value here.
105105
# define SWIFT_ISA_MASK 0xfffffffffffffff8ULL
106106
# elif __arm64__
107-
# if __has_feature(ptrauth_calls)
107+
// ARM64 simulators always use the ARM64e mask.
108+
# if __has_feature(ptrauth_calls) || TARGET_OS_SIMULATOR
108109
# define SWIFT_ISA_MASK 0x007ffffffffffff8ULL
109110
# else
110111
# if TARGET_OS_OSX

0 commit comments

Comments
 (0)