forked from OSchip/llvm-project
[IR] Add a default copy constructor for -Wdeprecated-copy
This commit is contained in:
parent
b220662a45
commit
b98f3ce33c
|
@ -266,6 +266,8 @@ public:
|
|||
AssertingVH(ValueTy *P) : ThePtr(GetAsValue(P)) {}
|
||||
#endif
|
||||
|
||||
AssertingVH(const AssertingVH<ValueTy> &) = default;
|
||||
|
||||
operator ValueTy*() const {
|
||||
return getValPtr();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue