diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-01-15 20:44:21 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-01-15 20:44:21 -0500 |
| commit | 92fc5947fc18ea077f0e02bc4758e9050270e4bb (patch) | |
| tree | 7f3967aa4372250330911b3b6d64ddb03bf05575 /src/analyze.cpp | |
| parent | 5a4968484b1ff761766180204151e77a701cff68 (diff) | |
| download | zig-92fc5947fc18ea077f0e02bc4758e9050270e4bb.tar.gz zig-92fc5947fc18ea077f0e02bc4758e9050270e4bb.zip | |
fix compiler crash related to @alignOf
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 8028ace289..9da8485014 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -2231,6 +2231,7 @@ static void resolve_union_zero_bits(CodeGen *g, TypeTableEntry *union_type) { // is a pointer to this very struct, or a function pointer with parameters that // reference such a type. union_type->data.unionation.zero_bits_known = true; + union_type->data.unionation.zero_bits_loop_flag = false; if (union_type->data.unionation.abi_alignment == 0) { if (union_type->data.unionation.layout == ContainerLayoutPacked) { union_type->data.unionation.abi_alignment = 1; |
