Jacob Young
0e3feebb04
codegen: fix taking the address of a zero-bit field in a zero-bit struct
...
Normally when we want a pointer to the end of a struct we just add 1 to
the struct pointer. However, when it is a zero-bit struct, the pointer
type being used during lowering is often a dummy pointer type that
actually points to a non-zero-bit type, so we actually want to add 0
instead, since a zero-bit struct begins and ends at the same address.
2022-12-18 22:11:26 -05:00
..
2022-12-17 14:11:33 +01:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 16:28:49 -07:00
2022-10-25 05:11:28 -04:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-06 19:06:48 -07:00
2022-12-10 12:34:34 +01:00
2022-12-06 19:06:48 -07:00
2022-12-13 13:14:20 +02:00
2022-12-10 21:51:46 +07:00
2022-12-17 14:11:33 +01:00
2022-12-10 21:51:46 +07:00
2021-10-28 17:33:05 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-13 13:14:20 +02:00
2022-12-10 21:51:46 +07:00
2022-12-10 16:28:49 -07:00
2022-12-06 19:06:48 -07:00
2022-12-10 21:51:46 +07:00
2022-02-13 14:42:20 +02:00
2022-12-10 21:51:46 +07:00
2022-11-04 23:13:50 +02:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-10-25 05:11:28 -04:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 16:28:49 -07:00
2022-12-10 21:51:46 +07:00
2021-05-08 14:45:21 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-18 13:31:38 +01:00
2021-05-08 14:45:21 -07:00
2022-03-11 12:59:20 -07:00
2022-12-10 21:51:46 +07:00
2022-01-07 00:06:06 -05:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 15:10:21 -05:00
2022-12-15 00:56:27 -08:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-16 06:08:10 -05:00
2022-12-13 13:33:16 +02:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 16:28:49 -07:00
2022-03-17 11:39:56 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2021-12-11 00:29:31 +01:00
2022-12-10 21:51:46 +07:00
2021-05-08 14:45:21 -07:00
2022-12-10 21:51:46 +07:00
2022-12-17 14:11:33 +01:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-17 13:22:09 +02:00
2021-06-21 17:03:03 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-18 22:11:26 -05:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-09-10 01:50:17 +03:00
2022-11-03 14:07:00 +02:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-17 14:11:33 +01:00
2022-12-17 14:11:33 +01:00
2022-12-18 13:31:38 +01:00
2022-12-18 13:31:38 +01:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-10 21:51:46 +07:00
2022-12-17 14:11:33 +01:00
2022-12-10 21:51:46 +07:00
2022-12-17 13:22:09 +02:00
2022-12-15 21:06:35 -05:00
2022-12-10 21:51:46 +07:00
2022-03-03 18:31:55 -07:00
2022-12-10 21:51:46 +07:00
2022-12-10 16:28:49 -07:00
2022-01-29 18:12:28 +02:00