From 4b42a64c3acd818a336f9ffc87cb3897623792c7 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 27 Sep 2024 01:17:20 +0800 Subject: [PATCH] Fixed implementation for block expression visit function. --- src/ast/expression/BlockExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast/expression/BlockExpression.cpp b/src/ast/expression/BlockExpression.cpp index 399b4b1..4ebd4a8 100644 --- a/src/ast/expression/BlockExpression.cpp +++ b/src/ast/expression/BlockExpression.cpp @@ -30,7 +30,7 @@ DynamicObject BlockExpression::visit(SymbolTable& symbols) { } catch(const TerminativeReturnSignal& rs) { table.waitForThreads(); - return std::move(rs.getObject()); + return rs.getObject(); } table.waitForThreads();