From 2b72d4f65b47caad3d611f7d9a747b6beec0f1ae Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 31 Jul 2024 00:15:06 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 657888564 --- xla/pjrt/cpu/abstract_tfrt_cpu_buffer.h | 6 +++--- xla/pjrt/cpu/tracked_tfrt_cpu_device_buffer.h | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/xla/pjrt/cpu/abstract_tfrt_cpu_buffer.h b/xla/pjrt/cpu/abstract_tfrt_cpu_buffer.h index 293bc4016ed80..7c06b26c8aa78 100644 --- a/xla/pjrt/cpu/abstract_tfrt_cpu_buffer.h +++ b/xla/pjrt/cpu/abstract_tfrt_cpu_buffer.h @@ -62,8 +62,8 @@ class MarkEventReadyOnExit { MarkEventReadyOnExit(const MarkEventReadyOnExit&) = delete; MarkEventReadyOnExit& operator=(const MarkEventReadyOnExit&) = delete; - MarkEventReadyOnExit(MarkEventReadyOnExit&&) = default; - MarkEventReadyOnExit& operator=(MarkEventReadyOnExit&&) = default; + MarkEventReadyOnExit(MarkEventReadyOnExit&&) noexcept = default; + MarkEventReadyOnExit& operator=(MarkEventReadyOnExit&&) noexcept = default; ~MarkEventReadyOnExit() { if (event_) event_.SetStateConcrete(); @@ -163,7 +163,7 @@ class AbstractTfrtCpuBuffer : public PjRtBuffer { DonationTransaction(const DonationTransaction&) = delete; DonationTransaction& operator=(const DonationTransaction&) = delete; DonationTransaction(DonationTransaction&&) = default; - DonationTransaction& operator=(DonationTransaction&& other) { + DonationTransaction& operator=(DonationTransaction&& other) noexcept { Abort(); buffer_ = other.buffer_; diff --git a/xla/pjrt/cpu/tracked_tfrt_cpu_device_buffer.h b/xla/pjrt/cpu/tracked_tfrt_cpu_device_buffer.h index 4bfc1c57aed26..8d22bd891e6fa 100644 --- a/xla/pjrt/cpu/tracked_tfrt_cpu_device_buffer.h +++ b/xla/pjrt/cpu/tracked_tfrt_cpu_device_buffer.h @@ -128,8 +128,9 @@ class TrackedTfrtCpuDeviceBuffer { absl::AnyInvocable on_delete_callback = nullptr); // Move-only. - TrackedTfrtCpuDeviceBuffer(TrackedTfrtCpuDeviceBuffer&&) = default; - TrackedTfrtCpuDeviceBuffer& operator=(TrackedTfrtCpuDeviceBuffer&&) = default; + TrackedTfrtCpuDeviceBuffer(TrackedTfrtCpuDeviceBuffer&&) noexcept = default; + TrackedTfrtCpuDeviceBuffer& operator=(TrackedTfrtCpuDeviceBuffer&&) noexcept = + default; TrackedTfrtCpuDeviceBuffer(const TrackedTfrtCpuDeviceBuffer&) = delete; TrackedTfrtCpuDeviceBuffer& operator=(const TrackedTfrtCpuDeviceBuffer&) = delete;