From 8539c10542a4be1e1127daea60bf1b1e4c37e092 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 1 Aug 2026 09:30:39 +0200 Subject: Fix compile-time negation and array access --- boot/ast.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'boot/ast.cc') diff --git a/boot/ast.cc b/boot/ast.cc index 2a90d0e..7157315 100644 --- a/boot/ast.cc +++ b/boot/ast.cc @@ -181,11 +181,6 @@ namespace elna::boot __builtin_unreachable(); } - void empty_visitor::visit(literal *) - { - __builtin_unreachable(); - } - void empty_visitor::visit(literal *) { __builtin_unreachable(); @@ -509,10 +504,6 @@ namespace elna::boot expression->base().accept(this); } - void walking_visitor::visit(literal *) - { - } - void walking_visitor::visit(literal *) { } @@ -979,7 +970,7 @@ namespace elna::boot { } - procedure_body::procedure_body(procedure_body&& that) + procedure_body::procedure_body(procedure_body&& that) noexcept : variables(std::move(const_cast&>(that.variables))), entry_point(std::move(const_cast&>(that.entry_point))), return_expression(that.return_expression) -- cgit v1.2.3