Skip to content

Commit 3c8fba0

Browse files
committed
[AST] NFC: Fix -Wdeprecated-copy warning
1 parent 21905ea commit 3c8fba0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/AST/AnyRequest.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ class AnyRequestBase {
145145
AnyRequestBase(const AnyRequestBase &other) {
146146
vtableAndKind = other.vtableAndKind;
147147
}
148+
AnyRequestBase &operator=(const AnyRequestBase &other) {
149+
vtableAndKind = other.vtableAndKind;
150+
return *this;
151+
}
148152

149153
private:
150154
Derived &asDerived() {

0 commit comments

Comments
 (0)