authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-03 12:38:24-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-03 12:38:24-04:00
loga11e73bee2266d4c568bdf9b23c891ac1365bb09
treeb0c4e5adbcd69a11e11f9244ac2462d4462cbdd2
parent3f273479f8f38fb408181b2ae2fff1acf4278ba1
signaturelock-open Commit is signed but in an unrecognized format.

compile error instead of segfault for unimplemented feature

closes #1103

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

src/ir.cpp+4-1
...@@ -6693,7 +6693,10 @@ static IrInstruction *ir_gen_fn_proto(IrBuilder *irb, Scope *parent_scope, AstNo...@@ -6693,7 +6693,10 @@ static IrInstruction *ir_gen_fn_proto(IrBuilder *irb, Scope *parent_scope, AstNo
6693 return irb->codegen->invalid_instruction;6693 return irb->codegen->invalid_instruction;
6694 }6694 }
6695 } else {6695 } else {
6696 return_type = nullptr;6696 add_node_error(irb->codegen, node,
6697 buf_sprintf("TODO implement inferred return types https://github.com/ziglang/zig/issues/447"));
6698 return irb->codegen->invalid_instruction;
6699 //return_type = nullptr;
6697 }6700 }
66986701
6699 IrInstruction *async_allocator_type_value = nullptr;6702 IrInstruction *async_allocator_type_value = nullptr;