diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-10-01 10:53:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-10-01 10:53:39 -0400 |
| commit | d1ec8377d1fcc9874c40e6603f64087f0b310677 (patch) | |
| tree | c96fbee62356b2ead89d8ea3f4a1d408710df7c4 /src/analyze.cpp | |
| parent | 9d4eaf1e07525a72fa54cfaa346a18bf18953af4 (diff) | |
| download | zig-d1ec8377d1fcc9874c40e6603f64087f0b310677.tar.gz zig-d1ec8377d1fcc9874c40e6603f64087f0b310677.zip | |
std lib: flesh out the async I/O streaming API a bit
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index ae0d67b2ec..14cba3970e 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -2710,6 +2710,11 @@ static Error resolve_struct_alignment(CodeGen *g, ZigType *struct_type) { // be resolving ResolveStatusZeroBitsKnown assert(field->type_entry != nullptr); + if (type_is_invalid(field->type_entry)) { + struct_type->data.structure.resolve_status = ResolveStatusInvalid; + break; + } + if (!type_has_bits(field->type_entry)) continue; |
