[llvm] 7faa844 - [IR] Move ctor in the NDEBUG branch
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 15:23:24 PST 2019
Author: Fangrui Song
Date: 2019-12-05T15:23:11-08:00
New Revision: 7faa8440440f280912c33a27c14c0dc4031532de
URL: https://github.com/llvm/llvm-project/commit/7faa8440440f280912c33a27c14c0dc4031532de
DIFF: https://github.com/llvm/llvm-project/commit/7faa8440440f280912c33a27c14c0dc4031532de.diff
LOG: [IR] Move ctor in the NDEBUG branch
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 78762846cdae..11ac2a8608d8 100644
--- a/llvm/include/llvm/IR/ValueHandle.h
+++ b/llvm/include/llvm/IR/ValueHandle.h
@@ -264,9 +264,8 @@ class AssertingVH
#else
AssertingVH() : ThePtr(nullptr) {}
AssertingVH(ValueTy *P) : ThePtr(GetAsValue(P)) {}
-#endif
-
AssertingVH(const AssertingVH<ValueTy> &) = default;
+#endif
operator ValueTy*() const {
return getValPtr();
More information about the llvm-commits
mailing list