aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-09-27 22:30:00 +0100
committergingerBill <bill@gingerbill.org>2022-09-27 22:30:00 +0100
commit35e70f4be17f4123ec25108d664864f13b38087e (patch)
tree58582e516b411cea6fafd9b92d16e04768f4e969 /src/check_builtin.cpp
parent0fe006157e6e6f07722bcf4eb7c51a8db07d008c (diff)
Add node data for union when using `intrinsics.type_convert_variants_to_pointers`
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 09294c93a..a00dd5def 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -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;