swift
5d0f2e3d - [sil] Add [inferred-immutable] flag to alloc_box instruction

Commit
104 days ago
[sil] Add [inferred-immutable] flag to alloc_box instruction Introduce a new optional flag on the alloc_box SIL instruction to mark boxes as inferred immutable, indicating that static analysis has proven they are never written to despite having a mutable type. The flag is preserved through serialization/deserialization and properly printed/parsed in textual SIL format. I am doing this to prepare for treating these boxes as being Sendable when they contain a sendable weak reference.
Author
Committer
Parents
Loading