[llvm] b98f3ce - [IR] Add a default copy constructor for -Wdeprecated-copy
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 15:05:40 PST 2019
Author: Fangrui Song
Date: 2019-12-05T15:00:30-08:00
New Revision: b98f3ce33cf22428353c60baec0e01dcb844480c
URL: https://github.com/llvm/llvm-project/commit/b98f3ce33cf22428353c60baec0e01dcb844480c
DIFF: https://github.com/llvm/llvm-project/commit/b98f3ce33cf22428353c60baec0e01dcb844480c.diff
LOG: [IR] Add a default copy constructor for -Wdeprecated-copy
Added:
Modified:
llvm/include/llvm/IR/ValueHandle.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/ValueHandle.h b/llvm/include/llvm/IR/ValueHandle.h
index 1135d796f7ed..78762846cdae 100644
--- a/llvm/include/llvm/IR/ValueHandle.h
+++ b/llvm/include/llvm/IR/ValueHandle.h
@@ -266,6 +266,8 @@ class AssertingVH
AssertingVH(ValueTy *P) : ThePtr(GetAsValue(P)) {}
#endif
+ AssertingVH(const AssertingVH<ValueTy> &) = default;
+
operator ValueTy*() const {
return getValPtr();
}
More information about the llvm-commits
mailing list