mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* add `GlobalVariable.staticInitializerInstructions` to access all initializer instructions of a global * implement `GlobalVariable.staticInitValue` with `GlobalVariable.staticInitializerInstructions` * this requires that `InstructionList.reversed()` works without accessing the parent block of the iterator instruction * allow `Context.erase(instruction:)` to delete instructions from a global's initializer list, which means to handle the case where a deleted instruction has no parent function.
5.8 KiB
5.8 KiB