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.
1 parent 54f9cae commit e5d772dCopy full SHA for e5d772d
include/swift/Basic/SuccessorMap.h
@@ -78,13 +78,15 @@ class SuccessorMap {
78
clear();
79
Root = other.Root;
80
other.Root = nullptr;
81
+ return *this;
82
}
83
84
SuccessorMap(const SuccessorMap &other) : Root(copyTree(other.Root)) {}
85
SuccessorMap &operator=(const SuccessorMap &other) {
86
// TODO: this is clearly optimizable to re-use nodes.
87
deleteTree(Root);
88
Root = copyTree(other.Root);
89
90
91
92
~SuccessorMap() {
0 commit comments