aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-09-05 03:11:59 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-09-05 03:11:59 -0400
commitc3362c1cb63ff8d8e79a16c76a574bbbd488967c (patch)
tree47e5c4e90947056a5b5c3e42c87cad1d664dd443 /src/ir.cpp
parent87970920c493de2f2d4606dfef92bb847e07105f (diff)
downloadzig-c3362c1cb63ff8d8e79a16c76a574bbbd488967c.tar.gz
zig-c3362c1cb63ff8d8e79a16c76a574bbbd488967c.zip
fix void return node and param name nodes, fix dupe macros
all tests passing
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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)