aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-03 22:21:54 +0100
committergingerBill <bill@gingerbill.org>2024-06-03 22:21:54 +0100
commit4dac577caaafcee45695baf057795666ace7f431 (patch)
tree183e65a57d1496423b3ac707e68a924298b673be
parent8e9716ea2f1628297b89e6d097b01bd574b1686c (diff)
Add attributes to Foreign_Import_Decl in `clone`
-rw-r--r--core/odin/ast/clone.odin3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/odin/ast/clone.odin b/core/odin/ast/clone.odin
index 406add2e9..b0a1673b2 100644
--- a/core/odin/ast/clone.odin
+++ b/core/odin/ast/clone.odin
@@ -278,8 +278,9 @@ clone_node :: proc(node: ^Node) -> ^Node {
r.foreign_library = clone(r.foreign_library)
r.body = clone(r.body)
case ^Foreign_Import_Decl:
+ r.attributes = clone_dynamic_array(r.attributes)
r.name = auto_cast clone(r.name)
- r.fullpaths = auto_cast clone_array(r.fullpaths)
+ r.fullpaths = clone_array(r.fullpaths)
case ^Proc_Group:
r.args = clone(r.args)
case ^Attribute: