Skip to content

Commit c3e1b80

Browse files
authored
Merge #1812 Fix IR move operation
This PR fixes IR `move` operation which leads empty parameters in the target Related PR: #1812
2 parents 773ffc4 + 7cc2695 commit c3e1b80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/solver/ir.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -96,7 +96,6 @@ Ir<ValueType>& Ir<ValueType>::operator=(const Ir& other)
9696
this->parameters_ = other.parameters_;
9797
this->set_solver(other.get_solver());
9898
this->set_relaxation_factor(other.relaxation_factor_);
99-
parameters_ = other.parameters_;
10099
}
101100
return *this;
102101
}
@@ -114,7 +113,6 @@ Ir<ValueType>& Ir<ValueType>::operator=(Ir&& other)
114113
this->set_relaxation_factor(other.relaxation_factor_);
115114
other.set_solver(nullptr);
116115
other.set_relaxation_factor(nullptr);
117-
parameters_ = other.parameters_;
118116
}
119117
return *this;
120118
}

0 commit comments

Comments
 (0)