union #no_nil

This commit is contained in:
gingerBill
2019-07-09 10:28:13 +01:00
parent c5b3d7a736
commit 4ab9edeb53
7 changed files with 34 additions and 9 deletions
+1
View File
@@ -715,6 +715,7 @@ void check_union_type(CheckerContext *ctx, Type *union_type, Ast *node, Array<Op
}
union_type->Union.variants = variants;
union_type->Union.no_nil = ut->no_nil;
if (ut->align != nullptr) {
i64 custom_align = 1;