diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-26 19:48:16 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-26 19:48:16 -0400 |
| commit | 64c9b0d11b1f6e33026727bdb325019ccc90fca7 (patch) | |
| tree | 568e586b0a08951dfe39ce485e59b9206bf60871 /src | |
| parent | 5782a7aa19e2bc95450bb0099407f38407e8bc2d (diff) | |
Clone ternary if expressions correctly
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/clone.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/clone.odin b/src/server/clone.odin index 7f5a1cb..07b309f 100644 --- a/src/server/clone.odin +++ b/src/server/clone.odin @@ -243,6 +243,10 @@ clone_node :: proc(node: ^ast.Node, allocator: mem.Allocator, unique_strings: ^m r.x = clone_type(r.x, allocator, unique_strings) r.cond = clone_type(r.cond, allocator, unique_strings) r.y = clone_type(r.y, allocator, unique_strings) + case ^Ternary_If_Expr: + r.x = clone_type(r.x, allocator, unique_strings) + r.cond = clone_type(r.cond, allocator, unique_strings) + r.y = clone_type(r.y, allocator, unique_strings) case ^Poly_Type: r.type = auto_cast clone_type(r.type, allocator, unique_strings) r.specialization = clone_type(r.specialization, allocator, unique_strings) |