We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3777ec0 + 16efe40 commit 42e8a96Copy full SHA for 42e8a96
include/swift/SIL/OwnershipUtils.h
@@ -251,6 +251,13 @@ struct BorrowScopeOperand {
251
252
BorrowScopeOperand(Operand *op)
253
: kind(*BorrowScopeOperandKind::get(op->getUser()->getKind())), op(op) {}
254
+ BorrowScopeOperand(const BorrowScopeOperand &other)
255
+ : kind(other.kind), op(other.op) {}
256
+ BorrowScopeOperand &operator=(const BorrowScopeOperand &other) {
257
+ kind = other.kind;
258
+ op = other.op;
259
+ return *this;
260
+ }
261
262
/// If value is a borrow introducer return it after doing some checks.
263
static Optional<BorrowScopeOperand> get(Operand *op) {
0 commit comments