swift
aa5a4e10 - GlobalOpt: optimize static properties with resilient types.

Commit
6 years ago
GlobalOpt: optimize static properties with resilient types. For example: struct ResilientStruct { var singleField: Int public static let x = ResilientStruct(singleField: 27) } The generated (resilient) getter for x should just return a 27 (wrapped in a struct) and not lazily initialize a global variable. rdar://problem/46712028
Author
Committer
Parents
Loading