From e2f4f96cd46b70360f3caa58acc4af14eb0e8688 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Sat, 17 Aug 2024 19:05:33 +0200 Subject: [PATCH] Fix issue with Or_Else_Expr --- src/server/clone.odin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/clone.odin b/src/server/clone.odin index 0da78ae8..c49152da 100644 --- a/src/server/clone.odin +++ b/src/server/clone.odin @@ -276,6 +276,9 @@ clone_node :: proc(node: ^ast.Node, allocator: mem.Allocator, unique_strings: ^m r.name = clone_type(r.name, allocator, unique_strings) r.type = clone_type(r.type, allocator, unique_strings) r.bit_size = clone_type(r.bit_size, allocator, unique_strings) + case ^Or_Else_Expr: + r.x = clone_type(r.x, allocator, unique_strings) + r.y = clone_type(r.y, allocator, unique_strings) case: }