Add node data for union when using intrinsics.type_convert_variants_to_pointers

This commit is contained in:
gingerBill
2022-09-27 22:30:00 +01:00
parent 0fe006157e
commit 35e70f4be1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -4751,6 +4751,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
new_type->Union.variants = variants;
// NOTE(bill): Is this even correct?
new_type->Union.node = operand->expr;
new_type->Union.scope = bt->Union.scope;
operand->type = new_type;