Elsa Keirouz
35ef1f1bea
[Opaque Values] Load an address-only InlineArray literal instead of casting it
...
emitInlineArrayLiteral adopts the stack slot of an address-only InlineArray
as the value of the literal with unchecked_addr_cast. That needs the lowered
type of the array to be an address type. With opaque values it is an object
type, so the verifier rejected the cast result: "unchecked_addr_cast result
must be an address". This happened for any address-only element type, such as
a noncopyable or a generic one.
Only adopt the stack slot when addresses are lowered. With opaque values, load
the array out of the slot, as for a loadable array.
Run test/SILGen/inlinearray_literal.swift under opaque values, with both
-emit-silgen and -emit-sil, instead of expecting a crash, and add a generic
function to it. Remove the XFAIL from test/stdlib/InlineArray.swift.
2026-12-03 20:34:40 +00:00
..
2026-11-13 00:20:00 -08:00
2026-07-26 22:25:20 -07:00
2026-12-03 04:58:58 +00:00
2026-10-22 13:45:39 -07:00
2026-11-30 16:57:36 +00:00
2026-08-26 19:08:13 +02:00
2026-11-05 19:26:12 +05:30
2025-10-04 14:19:52 -07:00
2026-02-25 21:47:31 +01:00
2025-10-04 14:19:52 -07:00
2026-05-07 15:30:25 -07:00
2026-07-10 23:18:55 -05:00
2026-10-16 15:45:48 +01:00
2026-11-30 16:57:36 +00:00
2026-08-12 09:21:18 +01:00
2025-07-24 17:31:01 -07:00
2026-09-17 09:07:51 -07:00
2025-04-24 09:21:32 +02:00
2026-10-08 14:57:31 -07:00
2026-05-07 15:30:25 -07:00
2026-06-15 15:15:16 +01:00
2026-07-08 10:52:28 -04:00
2026-05-18 17:05:44 -07:00
2025-03-29 15:40:56 -07:00
2026-07-09 11:31:55 -04:00
2026-03-17 07:31:32 +00:00
2026-06-15 15:15:16 +01:00
2025-10-04 14:19:52 -07:00
2025-03-14 02:15:15 -04:00
2026-05-07 15:30:25 -07:00
2026-05-18 17:05:44 -07:00
2026-09-03 16:36:23 -04:00
2026-12-03 04:58:56 +00:00
2025-03-29 15:40:56 -07:00
2026-06-15 15:15:16 +01:00
2026-10-21 15:33:34 -07:00
2025-10-04 14:19:52 -07:00
2026-09-08 17:27:40 -07:00
2026-06-18 11:39:16 +09:00
2025-03-29 15:40:56 -07:00
2026-06-18 11:39:16 +09:00
2026-09-10 15:46:51 -07:00
2025-03-29 15:40:56 -07:00
2026-12-03 04:58:58 +00:00
2026-12-03 20:34:40 +00:00
2026-06-15 15:15:16 +01:00
2025-10-04 14:19:52 -07:00
2026-06-15 15:15:16 +01:00
2026-04-29 20:25:16 -07:00
2026-12-03 04:58:58 +00:00
2025-12-18 16:39:16 -08:00
2026-07-10 12:52:22 -07:00
2026-06-15 15:15:16 +01:00
2026-12-03 04:58:56 +00:00
2026-06-15 15:15:16 +01:00
2026-12-03 04:58:56 +00:00
2026-07-26 22:25:20 -07:00
2026-06-15 15:15:16 +01:00
2026-01-23 10:08:41 +01:00
2026-10-30 10:34:06 +00:00
2026-08-12 09:20:06 +01:00
2026-09-09 14:49:05 +02:00
2026-07-17 18:43:16 -07:00
2026-05-07 19:13:53 -07:00
2026-11-30 16:57:36 +00:00
2025-07-31 10:21:55 -07:00
2026-09-21 10:59:50 -07:00
2026-12-03 04:58:58 +00:00
2026-11-08 21:57:39 +03:00
2026-11-08 21:57:39 +03:00
2025-12-17 17:15:34 -08:00
2026-11-08 21:57:39 +03:00
2026-06-15 15:15:16 +01:00
2026-10-12 19:02:47 -07:00
2026-07-08 17:26:12 -07:00
2026-11-23 13:25:05 -08:00
2026-12-03 04:58:58 +00:00
2025-10-04 14:19:52 -07:00
2025-06-05 19:42:20 -07:00
2026-06-15 15:15:16 +01:00
2026-12-03 04:58:56 +00:00
2024-10-07 16:13:34 -04:00
2026-05-07 15:30:25 -07:00
2026-07-14 15:17:54 +01:00
2026-10-08 17:16:42 -07:00
2026-12-03 04:58:56 +00:00
2026-06-15 15:15:16 +01:00
2026-12-03 04:58:56 +00:00
2026-09-14 14:29:50 -07:00
2026-09-04 17:25:30 -07:00
2026-09-14 14:29:50 -07:00
2025-06-16 20:16:05 -04:00
2025-06-16 20:16:05 -04:00
2026-08-31 17:52:30 -04:00
2025-06-16 20:16:05 -04:00
2026-07-28 10:21:53 -07:00
2025-06-16 20:16:05 -04:00
2025-06-16 20:16:05 -04:00
2026-07-29 16:43:37 -05:00
2026-11-09 17:08:38 +05:30
2026-05-07 15:30:25 -07:00
2026-09-08 22:57:20 +05:30
2026-05-07 13:20:39 -07:00
2026-05-07 15:30:25 -07:00
2025-03-29 15:40:56 -07:00
2026-09-14 17:50:16 -07:00
2026-12-01 12:25:55 -08:00
2026-07-12 11:25:31 -07:00
2025-03-29 15:40:56 -07:00
2026-12-03 04:58:58 +00:00
2026-10-15 21:21:56 -07:00
2026-07-27 20:30:56 -07:00
2026-12-03 04:58:56 +00:00
2026-06-15 15:15:16 +01:00
2026-03-26 18:09:18 -07:00
2026-05-09 08:48:39 -07:00
2026-06-15 15:15:16 +01:00
2026-07-27 20:30:56 -07:00
2025-10-16 09:01:27 -07:00
2026-07-29 18:06:40 -07:00
2026-10-22 10:03:56 +05:30
2025-10-30 15:11:06 -04:00
2026-09-10 16:43:53 -04:00
2026-07-27 20:30:56 -07:00
2026-08-17 17:02:25 -04:00
2026-06-15 15:15:16 +01:00
2025-10-04 14:19:52 -07:00
2025-10-04 14:19:52 -07:00
2026-06-30 14:47:56 +02:00
2026-05-07 19:13:53 -07:00
2025-10-04 14:19:52 -07:00
2025-10-04 14:19:52 -07:00
2026-05-07 15:30:25 -07:00
2026-12-03 04:58:56 +00:00
2026-10-12 17:57:58 -07:00
2026-07-27 20:30:56 -07:00
2026-07-27 20:30:56 -07:00
2026-06-15 15:15:16 +01:00
2025-07-23 10:10:47 +01:00
2026-01-29 13:27:41 -05:00
2026-11-18 09:41:18 -08:00
2026-10-08 23:29:24 -07:00
2026-10-08 23:29:24 -07:00