1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[IR] Add a default copy constructor for -Wdeprecated-copy

This commit is contained in:
Fangrui Song 2019-12-05 15:00:30 -08:00
parent 9609ff5a8c
commit dd7e53f957

View File

@ -266,6 +266,8 @@ public:
AssertingVH(ValueTy *P) : ThePtr(GetAsValue(P)) {}
#endif
AssertingVH(const AssertingVH<ValueTy> &) = default;
operator ValueTy*() const {
return getValPtr();
}