authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-13 14:48:12-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-13 14:48:43-05:00
log4f9739189ea733d885c183c80215cf5237a86c83
treed569e8b27f0c439204e7a91879a02e3320f7aeb1
parentc774c9376a20c2fde7db4fed94bdea5ae94e1494
signature Commit is signed but in an unrecognized format.

add an extra assert


1 files changed, 2 insertions(+), 0 deletions(-)

src/analyze.cpp+2
...@@ -6393,6 +6393,8 @@ static Error resolve_async_frame(CodeGen *g, ZigType *frame_type) {...@@ -6393,6 +6393,8 @@ static Error resolve_async_frame(CodeGen *g, ZigType *frame_type) {
6393 }6393 }
6394 instruction->field_index = fields.length;6394 instruction->field_index = fields.length;
63956395
6396 src_assert(child_type->id != ZigTypeIdPointer || child_type->data.pointer.inferred_struct_field == nullptr,
6397 instruction->base.source_node);
6396 fields.append({name, child_type, instruction->align});6398 fields.append({name, child_type, instruction->align});
6397 }6399 }
63986400