From 4ab9edeb53559f6ab6ef39a5ad9b45564d22aa8e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 9 Jul 2019 10:28:13 +0100 Subject: union #no_nil --- src/check_type.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index 555b54e78..6cd982bcb 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -715,6 +715,7 @@ void check_union_type(CheckerContext *ctx, Type *union_type, Ast *node, ArrayUnion.variants = variants; + union_type->Union.no_nil = ut->no_nil; if (ut->align != nullptr) { i64 custom_align = 1; -- cgit v1.2.3