[ParsedRawSyntaxNode] Make sure move-assignment operator calls the move-constructor

This commit is contained in:
Argyrios Kyrtzidis
2018-12-17 11:46:18 -08:00
parent eae5fd5ff0
commit 418bf6bd2e

View File

@@ -141,7 +141,7 @@ public:
ParsedRawSyntaxNode &operator=(ParsedRawSyntaxNode &&other) {
releaseMemory();
new (this)ParsedRawSyntaxNode(other);
new (this)ParsedRawSyntaxNode(std::move(other));
return *this;
}