Commit Graph

3 Commits

Author SHA1 Message Date
Joe Groff
0022816a10 Add missing %target-codesign to moveonly execution tests. 2023-12-13 08:17:19 -08:00
Joe Groff
91a489b9b2 Add test for error handling path combinations in same file as a resilient type.
In local testing, I found that the compiler is inserting double deinits in some cases.
2023-11-16 10:14:57 -08:00
Joe Groff
16d974e9e1 SILGen: Mark constant captures for no_consume_or_assign checking instead of may_assign_but_not_consume.
An immutable noncopyable capture borrows the captured value in-place and can't do anything
to modify it, and the may_assign_but_not_consume checking behaves badly with some code patterns
generated for resilient types when `self` is captured during a deinit. This change allows for
more accurate checking and fixes rdar://118427997.
2023-11-15 17:26:42 -08:00