mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-28 16:21:48 -07:00
Add node data for union when using intrinsics.type_convert_variants_to_pointers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user