mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ParsedRawSyntaxNode] Make sure move-assignment operator calls the move-constructor
This commit is contained in:
@@ -141,7 +141,7 @@ public:
|
||||
|
||||
ParsedRawSyntaxNode &operator=(ParsedRawSyntaxNode &&other) {
|
||||
releaseMemory();
|
||||
new (this)ParsedRawSyntaxNode(other);
|
||||
new (this)ParsedRawSyntaxNode(std::move(other));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user