From c3362c1cb63ff8d8e79a16c76a574bbbd488967c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 5 Sep 2017 03:11:59 -0400 Subject: fix void return node and param name nodes, fix dupe macros all tests passing --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index 4049295815..11e02d4cc7 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -6116,7 +6116,7 @@ static IrInstruction *ir_gen_fn_proto(IrBuilder *irb, Scope *parent_scope, AstNo IrInstruction *return_type; if (node->data.fn_proto.return_type == nullptr) { - return_type = ir_build_const_void(irb, parent_scope, node); + return_type = ir_build_const_type(irb, parent_scope, node, irb->codegen->builtin_types.entry_void); } else { return_type = ir_gen_node(irb, node->data.fn_proto.return_type, parent_scope); if (return_type == irb->codegen->invalid_instruction) -- cgit v1.2.3