zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4f9739189ea733d885c183c80215cf5237a86c83 (tree)
parent c774c9376a20c2fde7db4fed94bdea5ae94e1494
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 13 Jan 2020 14:48:12 -0500

add an extra assert

Diffstat:
Msrc/analyze.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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}); }