mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Merge pull request #4786 from korvahkh/fix-variants2ptrs
Preserve `#no_nil` in `intrinsics.type_convert_variants_to_pointers`
This commit is contained in:
@@ -5544,6 +5544,9 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
// NOTE(bill): Is this even correct?
|
// NOTE(bill): Is this even correct?
|
||||||
new_type->Union.node = operand->expr;
|
new_type->Union.node = operand->expr;
|
||||||
new_type->Union.scope = bt->Union.scope;
|
new_type->Union.scope = bt->Union.scope;
|
||||||
|
if (bt->Union.kind == UnionType_no_nil) {
|
||||||
|
new_type->Union.kind = UnionType_no_nil;
|
||||||
|
}
|
||||||
|
|
||||||
operand->type = new_type;
|
operand->type = new_type;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user