Skip to content

Commit e2aae59

Browse files
committed
Optimization for single component and fix tests
1 parent 40ce39c commit e2aae59

File tree

3 files changed

+133
-61
lines changed

3 files changed

+133
-61
lines changed

stdlib/public/SwiftShims/swift/shims/KeyPath.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ static const __swift_uint32_t _SwiftKeyPathBufferHeader_TrivialFlag
3232
= 0x80000000U;
3333
static const __swift_uint32_t _SwiftKeyPathBufferHeader_HasReferencePrefixFlag
3434
= 0x40000000U;
35+
static const __swift_uint32_t _SwiftKeyPathBufferHeader_IsSingleComponentFlag
36+
= 0x20000000U;
3537
static const __swift_uint32_t _SwiftKeyPathBufferHeader_ReservedMask
36-
= 0x3F000000U;
38+
= 0x1F000000U;
3739

3840
// Bitfields for a key path component header.
3941

0 commit comments

Comments
 (0)