diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-09-25 10:59:05 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-09-25 10:59:05 +0200 |
| commit | d048b633dd02014f8bff1b512ce4d5ae2b8b7903 (patch) | |
| tree | 108ba21d135648a59a59c0c490f39e7f31137fc2 /boot/name_analysis.cc | |
| parent | f7b035a505e86ad916a43ab1dc1a662a6066b011 (diff) | |
| download | elna-d048b633dd02014f8bff1b512ce4d5ae2b8b7903.tar.gz | |
Fix move related memory leaks in AST helpers
Diffstat (limited to 'boot/name_analysis.cc')
| -rw-r--r-- | boot/name_analysis.cc | 12 |
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); } } |
