aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorCody Tapscott <cody+topolarity@tapscott.me>2022-01-24 11:22:38 -0700
committerCody Tapscott <cody+topolarity@tapscott.me>2022-01-24 12:00:04 -0700
commit587a4437dbe4518671f4a894edb7d0f8e51d2ee1 (patch)
treec93f9148fce23702ca11d871d7847b3e71f8e88c /src/codegen.zig
parent983dfcd3fbd70347537f7b63db9838848caf0ac0 (diff)
downloadzig-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