Skip to content

Commit 59c53b7

Browse files
committed
Don't do the kvc stored offset optimization on 16 bit platforms
1 parent 02401d4 commit 59c53b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class AnyKeyPath: _AppendKeyPath {
8484
_kvcKeyPathStringPtr = nil
8585
}
8686
#else
87-
#error("Unsupported platform")
87+
// Don't assign anything.
8888
#endif
8989
}
9090

@@ -111,7 +111,8 @@ public class AnyKeyPath: _AppendKeyPath {
111111
}
112112
return nil
113113
#else
114-
#error("Unsupported platform")
114+
// Otherwise, we assigned nothing so return nothing.
115+
return nil
115116
#endif
116117
}
117118

0 commit comments

Comments
 (0)