diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-08-26 14:25:52 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-08-26 14:25:52 -0400 |
| commit | a0ae575ff8aef87d2dc4134c625f3a479b484b0f (patch) | |
| tree | d7442193c336b49eb5a84a477a521ab85ad7d57f /src/all_types.hpp | |
| parent | 40feecb3e468ca9fc3b5bcbe4b0a4aa30d10f226 (diff) | |
| download | zig-a0ae575ff8aef87d2dc4134c625f3a479b484b0f.tar.gz zig-a0ae575ff8aef87d2dc4134c625f3a479b484b0f.zip | |
codegen for enums chooses best order of tag and union fields
closes #396
Diffstat (limited to 'src/all_types.hpp')
| -rw-r--r-- | src/all_types.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp index 567e40d3ce..406b75db03 100644 --- a/src/all_types.hpp +++ b/src/all_types.hpp @@ -989,6 +989,9 @@ struct TypeTableEntryEnum { bool zero_bits_loop_flag; bool zero_bits_known; + + size_t gen_union_index; + size_t gen_tag_index; }; struct TypeTableEntryEnumTag { @@ -2626,9 +2629,6 @@ static const size_t slice_len_index = 1; static const size_t maybe_child_index = 0; static const size_t maybe_null_index = 1; -static const size_t enum_gen_tag_index = 0; -static const size_t enum_gen_union_index = 1; - static const size_t err_union_err_index = 0; static const size_t err_union_payload_index = 1; |
