aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-02-10 19:14:54 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-02-10 19:14:54 -0500
commit3170ead9eb3ca91218fd83ecc72170271f8b494c (patch)
treeb9c9cbe3bb14945962bf2f83d1e86f4e9616acfb /src/ir.cpp
parent702398dd0e2188ad03b3c4760c08ea673573489e (diff)
downloadzig-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.cpp4
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);