Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Code Change #20074

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xla/hlo/ir/backend_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class BackendConfigWrapper {
raw_string_ = other.raw_string_;
}

BackendConfigWrapper& operator=(BackendConfigWrapper&& other);
BackendConfigWrapper& operator=(BackendConfigWrapper&& other) noexcept;
bool operator==(const BackendConfigWrapper& other) const;
bool operator!=(const BackendConfigWrapper& other) const {
return !(*this == other);
Expand Down
8 changes: 4 additions & 4 deletions xla/hlo/ir/ptrvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class PtrVec {
PtrVec& operator=(const PtrVec& x);

// Movable.
PtrVec(PtrVec&& x);
PtrVec& operator=(PtrVec&& x);
PtrVec(PtrVec&& x) noexcept;
PtrVec& operator=(PtrVec&& x) noexcept;

// Const iteration. Non-const iteration can be easily added if necessary.
using difference_type = std::ptrdiff_t;
Expand Down Expand Up @@ -202,12 +202,12 @@ inline PtrVec<T>& PtrVec<T>::operator=(const PtrVec& x) {
}

template <class T>
inline PtrVec<T>::PtrVec(PtrVec&& x) : rep_(x.rep_) {
inline PtrVec<T>::PtrVec(PtrVec&& x) noexcept : rep_(x.rep_) {
x.rep_ = kEmptyTag;
}

template <class T>
inline PtrVec<T>& PtrVec<T>::operator=(PtrVec&& x) {
inline PtrVec<T>& PtrVec<T>::operator=(PtrVec&& x) noexcept {
if (this != &x) {
if (is_big()) {
FreeBig(big());
Expand Down