diff --git a/src/vt/messaging/active.cc b/src/vt/messaging/active.cc index 8bf2df73bf..6151d2d9e1 100644 --- a/src/vt/messaging/active.cc +++ b/src/vt/messaging/active.cc @@ -292,7 +292,7 @@ EventType ActiveMessenger::sendMsgMPI( // Send the control message to receive the multiple chunks of data auto m = makeMessage(info, this_node, msg_size); - sendMsg(dest, m); + sendMsg(dest, m.get()); return event_id; } diff --git a/tests/unit/active/test_active_send_large.cc b/tests/unit/active/test_active_send_large.cc index 37b6d6b2df..24ac15f5da 100644 --- a/tests/unit/active/test_active_send_large.cc +++ b/tests/unit/active/test_active_send_large.cc @@ -140,7 +140,7 @@ TYPED_TEST_P(TestActiveSendLarge, test_large_bytes_msg) { auto msg = makeMessage(); fillMsg(msg); msg->cb_ = cb; - theMsg()->sendMsg>(next_node, msg); + theMsg()->sendMsg>(next_node, msg.get()); }); EXPECT_EQ(counter, 1);