Skip to content

Commit bc4b38d

Browse files
Removed an unnecessary disabling of isPureStruct.
This would have prevented explicitly specified KeyPaths through pure structs, e.g., \A.b.c, from taking the optimized path.
1 parent 9171f79 commit bc4b38d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3688,7 +3688,6 @@ internal struct InstantiateKeyPathBuffer: KeyPathPatternVisitor {
36883688
}
36893689

36903690
mutating func visitIntermediateComponentType(metadataRef: MetadataReference) {
3691-
isPureStruct.append(false)
36923691
// Get the metadata for the intermediate type.
36933692
let metadata = _resolveKeyPathMetadataReference(
36943693
metadataRef,

0 commit comments

Comments
 (0)