Skip to content

Commit

Permalink
#2092: message: fix more missing moves
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and stmcgovern committed Apr 26, 2023
1 parent aad6f2d commit f823b5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vt/pipe/callback/handler_send/callback_send.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ CallbackSend<MsgT>::triggerDispatch(SignalDataType* data, PipeType const& pid) {
if (this_node == send_node_) {
auto msg = reinterpret_cast<ShortMessage*>(data);
auto m = promoteMsg(msg);
runnable::makeRunnable(m, true, handler_, this_node)
runnable::makeRunnable(std::move(m), true, handler_, this_node)
.withTDEpochFromMsg()
.enqueue();
} else {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/location/test_location_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void routeTestHandler(EntityMsg* msg) {
);
// route message
vt::theLocMan()->virtual_loc->routeMsg<MsgT>(
msg->entity_, msg->home_, test_msg
msg->entity_, msg->home_, std::move(test_msg)
);
}

Expand Down Expand Up @@ -152,7 +152,7 @@ void verifyCacheConsistency(
runInEpochCollective([&]{
if (my_node not_eq home) {
// route entity message
vt::theLocMan()->virtual_loc->routeMsg<MsgT>(entity, home, msg);
vt::theLocMan()->virtual_loc->routeMsg<MsgT>(entity, home, std::move(msg));
}
});

Expand Down

0 comments on commit f823b5c

Please sign in to comment.