add an extra assert

This commit is contained in:
Andrew Kelley 2020-01-13 14:48:12 -05:00
parent c774c9376a
commit 4f9739189e
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -6393,6 +6393,8 @@ static Error resolve_async_frame(CodeGen *g, ZigType *frame_type) {
}
instruction->field_index = fields.length;
src_assert(child_type->id != ZigTypeIdPointer || child_type->data.pointer.inferred_struct_field == nullptr,
instruction->base.source_node);
fields.append({name, child_type, instruction->align});
}