From d048b633dd02014f8bff1b512ce4d5ae2b8b7903 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 25 Sep 2026 10:59:05 +0200 Subject: Fix move related memory leaks in AST helpers --- boot/name_analysis.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'boot/name_analysis.cc') 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); } } -- cgit v1.2.3