From 3170ead9eb3ca91218fd83ecc72170271f8b494c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 10 Feb 2020 19:14:54 -0500 Subject: [PATCH] compile error instead of abort for unimplemented `@typeInfo` of `@Frame(func)`. Closes #3995 --- src/ir.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);