mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Destroying the SIL remark streamer after transferring ownership to LLVM is frought. For one, the streamer holds the remark file's stream open. Destroying it early doesn't accomodate sil-opt, which transfers control to LLVM before running passes that emit remarks. Instead, just take a reference to the context that the streamer gets parented onto. If the remarks streamer infrastructure could just hold the file stream open for us, we wouldn't have to do any of this.
3.4 KiB
3.4 KiB