diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-02-10 19:14:54 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-02-10 19:14:54 -0500 |
| commit | 3170ead9eb3ca91218fd83ecc72170271f8b494c (patch) | |
| tree | b9c9cbe3bb14945962bf2f83d1e86f4e9616acfb /src/ir.cpp | |
| parent | 702398dd0e2188ad03b3c4760c08ea673573489e (diff) | |
| download | zig-3170ead9eb3ca91218fd83ecc72170271f8b494c.tar.gz zig-3170ead9eb3ca91218fd83ecc72170271f8b494c.zip | |
compile error instead of abort for unimplemented `@typeInfo`
of `@Frame(func)`. Closes #3995
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index f73b5ede1b..d16c8a5e36 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -24564,7 +24564,9 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInst* source_instr, ZigTy break; } case ZigTypeIdFnFrame: - zig_panic("TODO @typeInfo for async function frames"); + ir_add_error(ira, source_instr, + buf_sprintf("compiler bug: TODO @typeInfo for async function frames. https://github.com/ziglang/zig/issues/3066")); + return ErrorSemanticAnalyzeFail; } assert(result != nullptr); |
