From d1ec8377d1fcc9874c40e6603f64087f0b310677 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 1 Oct 2018 10:53:39 -0400 Subject: std lib: flesh out the async I/O streaming API a bit --- src/analyze.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/analyze.cpp') 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; -- cgit v1.2.3