diff --git a/runtime/src/iree/modules/check/module.cc b/runtime/src/iree/modules/check/module.cc index edbb9fe99476..41ab44532399 100644 --- a/runtime/src/iree/modules/check/module.cc +++ b/runtime/src/iree/modules/check/module.cc @@ -231,8 +231,11 @@ TransferBuffersToHost( static Status TransferToHost(iree_hal_device_t* device, vm::ref& buffer_view) { IREE_TRACE_SCOPE(); - IREE_ASSIGN_OR_RETURN(auto target_views, - TransferBuffersToHost(device, {buffer_view})); + IREE_ASSIGN_OR_RETURN( + auto target_views, + TransferBuffersToHost( + device, + iree::span>({buffer_view}))); buffer_view = std::move(target_views[0]); return OkStatus(); } @@ -243,7 +246,9 @@ static Status TransferToHost(iree_hal_device_t* device, IREE_TRACE_SCOPE(); IREE_ASSIGN_OR_RETURN( auto target_views, - TransferBuffersToHost(device, {buffer_view_a, buffer_view_b})); + TransferBuffersToHost(device, + iree::span>( + {buffer_view_a, buffer_view_b}))); buffer_view_a = std::move(target_views[0]); buffer_view_b = std::move(target_views[1]); return OkStatus();