Skip to content

Commit 86ca0a1

Browse files
committed
SIL: explicitly instantiate the Operand move ctor
GCC 7 does not like the missing move constructor and does not implicitly synthesize one. Explicitly indicate that this should be synthesized.
1 parent 746b58e commit 86ca0a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/SIL/SILValue.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ class Operand {
586586
Operand(const Operand &use) = delete;
587587
Operand &operator=(const Operand &use) = delete;
588588

589+
Operand(Operand &&) = default;
590+
589591
/// Return the current value being used by this operand.
590592
SILValue get() const { return TheValue; }
591593

0 commit comments

Comments
 (0)