authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-10 19:14:54-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-10 19:14:54-05:00
log3170ead9eb3ca91218fd83ecc72170271f8b494c
treeb9c9cbe3bb14945962bf2f83d1e86f4e9616acfb
parent702398dd0e2188ad03b3c4760c08ea673573489e
signaturelock-open Commit is signed but in an unrecognized format.

compile error instead of abort for unimplemented `@typeInfo`

of `@Frame(func)`. Closes #3995

1 files changed, 3 insertions(+), 1 deletions(-)

src/ir.cpp+3-1
...@@ -24564,7 +24564,9 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInst* source_instr, ZigTy...@@ -24564,7 +24564,9 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInst* source_instr, ZigTy
24564 break;24564 break;
24565 }24565 }
24566 case ZigTypeIdFnFrame:24566 case ZigTypeIdFnFrame:
24567 zig_panic("TODO @typeInfo for async function frames");24567 ir_add_error(ira, source_instr,
24568 buf_sprintf("compiler bug: TODO @typeInfo for async function frames. https://github.com/ziglang/zig/issues/3066"));
24569 return ErrorSemanticAnalyzeFail;
24568 }24570 }
2456924571
24570 assert(result != nullptr);24572 assert(result != nullptr);