Erik Eckstein
3ef4838fab
CopyToBorrowOptimization: don't remove destroys of values with deinits
...
If a copied value is forwarded into a non-copyable struct or enum which has a deinit, the destroy of the forwarded value calls the deinit.
Converting the forwarding instruction to guaranteed ownership erased this destroy, and therefore dropped the call of the deinit.
Fix this by not converting forwarding instructions which produce a value type with a deinit.
Fixes a mis-compile.
rdar://190730702
2026-10-23 09:46:28 +01:00
..
2026-08-03 12:11:09 +01:00
2025-12-21 00:33:50 +00:00
2026-01-22 17:41:48 +01:00
2026-10-16 17:28:37 +02:00
2026-10-20 17:06:50 -07:00
2026-10-16 10:43:32 +01:00
2026-10-02 13:42:08 -07:00
2026-05-07 09:52:14 +02:00
2026-09-28 07:42:34 -07:00
2026-04-02 07:56:25 +02:00
2026-10-02 19:58:06 -07:00
2026-08-31 06:47:34 +02:00
2026-10-23 09:46:28 +01:00
2026-07-15 09:00:16 +02:00
2026-08-07 15:11:38 +01:00
2026-10-20 09:43:20 +02:00
2026-08-03 13:16:30 +02:00
2026-02-02 19:36:48 +01:00
2026-10-07 07:37:42 +02:00
2025-04-18 06:58:38 +02:00
2025-11-26 16:23:47 +01:00
2026-10-19 14:48:39 -07:00
2026-07-28 18:26:05 -07:00
2026-08-03 12:11:09 +01:00
2026-09-29 08:32:49 +01:00
2026-10-16 15:27:12 -04:00
2026-10-14 22:14:37 -07:00
2026-10-20 09:02:05 -07:00
2026-10-19 14:48:39 -07:00
2026-10-15 20:44:30 -07:00
2026-10-22 15:12:50 +01:00
2026-08-28 09:12:19 +02:00
2026-06-10 08:18:51 +02:00
2026-03-11 11:50:20 -07:00
2025-05-06 12:35:21 +02:00
2025-12-26 20:25:13 -05:00
2026-10-16 09:44:11 -07:00
2026-05-18 14:45:26 +01:00
2026-10-16 10:43:32 +01:00
2026-07-18 08:51:34 +02:00
2026-10-19 14:48:39 -07:00
2026-09-11 10:49:04 +02:00
2026-09-23 15:19:25 -07:00
2026-10-15 17:02:55 +02:00
2026-09-22 10:30:51 -04:00
2026-09-15 18:12:25 +01:00
2026-10-07 10:05:01 +02:00
2026-09-21 09:26:22 -07:00