diff options
| author | Cody Tapscott <cody+topolarity@tapscott.me> | 2022-01-24 11:22:38 -0700 |
|---|---|---|
| committer | Cody Tapscott <cody+topolarity@tapscott.me> | 2022-01-24 12:00:04 -0700 |
| commit | 587a4437dbe4518671f4a894edb7d0f8e51d2ee1 (patch) | |
| tree | c93f9148fce23702ca11d871d7847b3e71f8e88c /src/codegen.zig | |
| parent | 983dfcd3fbd70347537f7b63db9838848caf0ac0 (diff) | |
| download | zig-587a4437dbe4518671f4a894edb7d0f8e51d2ee1.tar.gz zig-587a4437dbe4518671f4a894edb7d0f8e51d2ee1.zip | |
Add `union` support to the C backend.
There are some differences vs. the union encoding in the LLVM backend:
- Tagged unions with a 0-bit payload do not become their tag type. Instead,
they are a struct with an empty `union` as their payload field.
- We do not order the `payload`/`tag` storage based on their alignment
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
