mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use relative references instead of pointers so that the pattern can be true-const. Instead of trying to instantiate a constant key path literal in-place, point to a cache variable that we can store a pointer to the shared instance into when instantiated. Now that the pattern format has diverged significantly from the instance format, simplify and refactor the instantiation code using a walker for the pattern format instead of trying to reuse the code for working with instantiated instances. rdar://problem/42674576
5.1 KiB
5.1 KiB