aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-03 13:13:01 -0400
committerGitHub <noreply@github.com>2025-08-03 13:13:01 -0400
commitfd621d7628333e0bc5c0fc75f2faeb51ab12c2df (patch)
treee006b69738fc3c7822db394d0d8458175d5d1c7a /src
parent526b55af850b8ee6a64b5f9ffe074bf708d0f655 (diff)
parent7951472a9d91c4d37a7f076c7189d6c3bc8a5914 (diff)
Merge pull request #821 from BradLewis/fix/clone-calling-conv
Clone the calling convention when cloning an `ast.Proc_Type`
Diffstat (limited to 'src')
-rw-r--r--src/server/clone.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/clone.odin b/src/server/clone.odin
index adf1172..d761a42 100644
--- a/src/server/clone.odin
+++ b/src/server/clone.odin
@@ -190,6 +190,7 @@ clone_node :: proc(node: ^ast.Node, allocator: mem.Allocator, unique_strings: ^m
case ^Proc_Type:
r.params = auto_cast clone_type(r.params, allocator, unique_strings)
r.results = auto_cast clone_type(r.results, allocator, unique_strings)
+ r.calling_convention = clone_calling_convention(r.calling_convention, allocator, unique_strings)
case ^Pointer_Type:
r.elem = clone_type(r.elem, allocator, unique_strings)
case ^Array_Type: