diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-08-06 18:29:56 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-06 18:29:56 -0400 |
| commit | 17199b087915661c935f0970cc1e4eb29968a68d (patch) | |
| tree | 8bac40ee50c809720fee1bbfbd23bbc4347500a1 /src/analyze.cpp | |
| parent | 400500a3afafca8178f13a7e4e1cd0ae7808aff2 (diff) | |
| download | zig-17199b087915661c935f0970cc1e4eb29968a68d.tar.gz zig-17199b087915661c935f0970cc1e4eb29968a68d.zip | |
passing the error return trace async function test
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 36eeaeac9c..764b28ed45 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -5160,6 +5160,8 @@ static ZigType *get_async_fn_type(CodeGen *g, ZigType *orig_fn_type) { } static Error resolve_coro_frame(CodeGen *g, ZigType *frame_type) { + Error err; + if (frame_type->data.frame.locals_struct != nullptr) return ErrorNone; @@ -5286,6 +5288,9 @@ static Error resolve_coro_frame(CodeGen *g, ZigType *frame_type) { continue; } } + if ((err = type_resolve(g, child_type, ResolveStatusSizeKnown))) { + return err; + } const char *name; if (*instruction->name_hint == 0) { name = buf_ptr(buf_sprintf("@local%" ZIG_PRI_usize, alloca_i)); |
