diff --git a/dbms/src/Processors/Port.h b/dbms/src/Processors/Port.h index fe29324d94c..f488327cfa2 100644 --- a/dbms/src/Processors/Port.h +++ b/dbms/src/Processors/Port.h @@ -73,9 +73,9 @@ protected: auto cur_data = pullData(); if (std::holds_alternative(cur_data)) - std::rethrow_exception(std::move(std::get(cur_data))); + std::rethrow_exception(std::get(std::move(cur_data))); - return std::move(std::get(cur_data)); + return std::get(std::move(cur_data)); } bool hasData() const