From 4f9739189ea733d885c183c80215cf5237a86c83 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 13 Jan 2020 14:48:12 -0500 Subject: add an extra assert --- src/analyze.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 2958dd8917..255ac4ff0e 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -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}); } -- cgit v1.2.3