From b4e40cb59a4d8ee498a0ae5b892bb5907745dc1e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 26 Jun 2019 00:36:24 -0400 Subject: fix peer type resolution with null --- src/ir.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index fb2f9f4980..d6fdcd28ed 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -10399,6 +10399,7 @@ static ZigType *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_node, ZigT if (prev_type->id == ZigTypeIdNull) { prev_inst = cur_inst; + any_are_null = true; continue; } -- cgit v1.2.3