compile error instead of abort for unimplemented @typeInfo

of `@Frame(func)`. Closes #3995
This commit is contained in:
Andrew Kelley 2020-02-10 19:14:54 -05:00
parent 702398dd0e
commit 3170ead9eb
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -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);