diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-13 14:48:12 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-13 14:48:43 -0500 |
| commit | 4f9739189ea733d885c183c80215cf5237a86c83 (patch) | |
| tree | d569e8b27f0c439204e7a91879a02e3320f7aeb1 /src/analyze.cpp | |
| parent | c774c9376a20c2fde7db4fed94bdea5ae94e1494 (diff) | |
| download | zig-4f9739189ea733d885c183c80215cf5237a86c83.tar.gz zig-4f9739189ea733d885c183c80215cf5237a86c83.zip | |
add an extra assert
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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}); } |
