diff --git a/include/anthem/Term.h b/include/anthem/Term.h index ba008aa..1782c67 100644 --- a/include/anthem/Term.h +++ b/include/anthem/Term.h @@ -72,7 +72,7 @@ struct TermTranslateVisitor function->arguments.emplace_back(std::move(translatedArgument.value())); } - return function; + return std::move(function); } default: throwErrorAtLocation(term.location, "symbol type not supported", context);