diff --git a/CUDADataFormats/SiPixelDigi/src/SiPixelDigiErrorsCUDA.cc b/CUDADataFormats/SiPixelDigi/src/SiPixelDigiErrorsCUDA.cc index ef229be4b9910..075d408a6f6fc 100644 --- a/CUDADataFormats/SiPixelDigi/src/SiPixelDigiErrorsCUDA.cc +++ b/CUDADataFormats/SiPixelDigi/src/SiPixelDigiErrorsCUDA.cc @@ -38,5 +38,5 @@ SiPixelDigiErrorsCUDA::HostDataError SiPixelDigiErrorsCUDA::dataErrorToHostAsync } auto err = *error_h; err.set_data(data.get()); - return HostDataError(std::move(err), std::move(data)); + return HostDataError(err, std::move(data)); } diff --git a/EventFilter/SiPixelRawToDigi/plugins/SiPixelDigiErrorsSoAFromCUDA.cc b/EventFilter/SiPixelRawToDigi/plugins/SiPixelDigiErrorsSoAFromCUDA.cc index 8817606043a60..c5b568750ad7d 100644 --- a/EventFilter/SiPixelRawToDigi/plugins/SiPixelDigiErrorsSoAFromCUDA.cc +++ b/EventFilter/SiPixelRawToDigi/plugins/SiPixelDigiErrorsSoAFromCUDA.cc @@ -52,7 +52,7 @@ void SiPixelDigiErrorsSoAFromCUDA::acquire(const edm::Event& iEvent, const auto& gpuDigiErrors = ctx.get(iEvent, digiErrorGetToken_); auto tmp = gpuDigiErrors.dataErrorToHostAsync(ctx.stream()); - error_ = std::move(tmp.first); + error_ = tmp.first; data_ = std::move(tmp.second); formatterErrors_ = &(gpuDigiErrors.formatterErrors()); }