From db26edddfdf8b7f3988ff6eba1aed973831ae9e0 Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 16 Feb 2023 15:35:11 -0700 Subject: [PATCH] #2092: message: fix more missing moves --- src/vt/pipe/callback/handler_send/callback_send.impl.h | 2 +- tests/unit/location/test_location_common.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vt/pipe/callback/handler_send/callback_send.impl.h b/src/vt/pipe/callback/handler_send/callback_send.impl.h index fd172c0eab..0e97bd1e98 100644 --- a/src/vt/pipe/callback/handler_send/callback_send.impl.h +++ b/src/vt/pipe/callback/handler_send/callback_send.impl.h @@ -110,7 +110,7 @@ CallbackSend::triggerDispatch(SignalDataType* data, PipeType const& pid) { if (this_node == send_node_) { auto msg = reinterpret_cast(data); auto m = promoteMsg(msg); - runnable::makeRunnable(m, true, handler_, this_node) + runnable::makeRunnable(std::move(m), true, handler_, this_node) .withTDEpochFromMsg() .enqueue(); } else { diff --git a/tests/unit/location/test_location_common.h b/tests/unit/location/test_location_common.h index 8a7438f6ce..2c624811e7 100644 --- a/tests/unit/location/test_location_common.h +++ b/tests/unit/location/test_location_common.h @@ -123,7 +123,7 @@ void routeTestHandler(EntityMsg* msg) { ); // route message vt::theLocMan()->virtual_loc->routeMsg( - msg->entity_, msg->home_, test_msg + msg->entity_, msg->home_, std::move(test_msg) ); } @@ -152,7 +152,7 @@ void verifyCacheConsistency( runInEpochCollective([&]{ if (my_node not_eq home) { // route entity message - vt::theLocMan()->virtual_loc->routeMsg(entity, home, msg); + vt::theLocMan()->virtual_loc->routeMsg(entity, home, std::move(msg)); } });