aboutsummaryrefslogtreecommitdiff
path: root/boot/name_analysis.cc
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-09-25 10:59:05 +0200
committerEugen Wissner <belka@caraus.de>2026-09-25 10:59:05 +0200
commitd048b633dd02014f8bff1b512ce4d5ae2b8b7903 (patch)
tree108ba21d135648a59a59c0c490f39e7f31137fc2 /boot/name_analysis.cc
parentf7b035a505e86ad916a43ab1dc1a662a6066b011 (diff)
downloadelna-d048b633dd02014f8bff1b512ce4d5ae2b8b7903.tar.gz
Fix move related memory leaks in AST helpers
Diffstat (limited to 'boot/name_analysis.cc')
-rw-r--r--boot/name_analysis.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/boot/name_analysis.cc b/boot/name_analysis.cc
index 5d5bd34..2ee3da1 100644
--- a/boot/name_analysis.cc
+++ b/boot/name_analysis.cc
@@ -757,10 +757,10 @@ namespace elna::boot
statement->branch().prerequisite().accept(this);
visit_block(statement->branch().body);
- for (conditional_statements *branch : statement->branches)
+ for (conditional_statements& branch : statement->branches)
{
- branch->prerequisite().accept(this);
- visit_block(branch->body);
+ branch.prerequisite().accept(this);
+ visit_block(branch.body);
}
if (statement->alternative != nullptr)
{
@@ -773,10 +773,10 @@ namespace elna::boot
statement->branch().prerequisite().accept(this);
visit_block(statement->branch().body);
- for (conditional_statements *branch : statement->branches)
+ for (conditional_statements& branch : statement->branches)
{
- branch->prerequisite().accept(this);
- visit_block(branch->body);
+ branch.prerequisite().accept(this);
+ visit_block(branch.body);
}
}