swift
afc0f617 - Optimizer: support statically initialized globals which contain pointers to other globals

Commit
2 years ago
Optimizer: support statically initialized globals which contain pointers to other globals For example: ``` var p = Point(x: 10, y: 20) let o = UnsafePointer(&p) ``` Also support outlined arrays with pointers to other globals. For example: ``` var g1 = 1 var g2 = 2 func f() -> [UnsafePointer<Int>] { return [UnsafePointer(&g1), UnsafePointer(&g2)] } ```
Author
Committer
Parents
Loading