diff --git a/llvm/include/llvm/IR/ValueHandle.h b/llvm/include/llvm/IR/ValueHandle.h --- a/llvm/include/llvm/IR/ValueHandle.h +++ b/llvm/include/llvm/IR/ValueHandle.h @@ -287,7 +287,7 @@ #else AssertingVH() : ThePtr(nullptr) {} AssertingVH(ValueTy *P) : ThePtr(GetAsValue(P)) {} - AssertingVH(const AssertingVH &) = default; + AssertingVH(const AssertingVH &) = default; #endif operator ValueTy*() const { @@ -442,9 +442,9 @@ /// PoisoningVH's as it moves. This is required because in non-assert mode this /// class turns into a trivial wrapper around a pointer. template -class PoisoningVH +class PoisoningVH final #if LLVM_ENABLE_ABI_BREAKING_CHECKS - final : public CallbackVH + : public CallbackVH #endif { friend struct DenseMapInfo>;