[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 b220662a45
commit b98f3ce33c
1 changed files with 2 additions and 0 deletions

View File

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