We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1071451 commit c4ab943Copy full SHA for c4ab943
stdlib/public/core/KeyPath.swift
@@ -2380,6 +2380,7 @@ internal struct KeyPathBuffer {
2380
}
2381
2382
2383
+ @inline(never)
2384
internal mutating func next() -> (RawKeyPathComponent, Any.Type?) {
2385
let header = unsafe _pop(from: &data, as: RawKeyPathComponent.Header.self)
2386
// Track if this is the last component of the reference prefix.
@@ -3663,7 +3664,7 @@ internal struct GetKeyPathClassAndInstanceSizeFromPattern
3663
3664
var size: Int = MemoryLayout<Int>.size
3665
var sizeWithMaxSize: Int = 0
3666
var sizeWithObjectHeaderAndKvc: Int {
- size &+ MemoryLayout<Int>.size * 3
3667
+ unsafe size &+ MemoryLayout<Int>.size &* 3
3668
3669
3670
var capability: KeyPathKind = .value
0 commit comments