Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 702132926
  • Loading branch information
Google-ML-Automation committed Dec 3, 2024
1 parent e9947dd commit f03dd91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit f03dd91

Please sign in to comment.