Commit 4f9739189e

Andrew Kelley <andrew@ziglang.org>
2020-01-13 20:48:12
add an extra assert
1 parent c774c93
Changed files (1)
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});
     }