mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[NFC] Minor cleanup for ValueHandle code.
Based on feedback in https://reviews.llvm.org/D93433. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D94238
This commit is contained in:
parent
01c91735ba
commit
d38b7dd07c
@ -287,7 +287,7 @@ public:
|
||||
#else
|
||||
AssertingVH() : ThePtr(nullptr) {}
|
||||
AssertingVH(ValueTy *P) : ThePtr(GetAsValue(P)) {}
|
||||
AssertingVH(const AssertingVH<ValueTy> &) = default;
|
||||
AssertingVH(const AssertingVH &) = default;
|
||||
#endif
|
||||
|
||||
operator ValueTy*() const {
|
||||
@ -442,9 +442,9 @@ public:
|
||||
/// PoisoningVH's as it moves. This is required because in non-assert mode this
|
||||
/// class turns into a trivial wrapper around a pointer.
|
||||
template <typename ValueTy>
|
||||
class PoisoningVH
|
||||
class PoisoningVH final
|
||||
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
|
||||
final : public CallbackVH
|
||||
: public CallbackVH
|
||||
#endif
|
||||
{
|
||||
friend struct DenseMapInfo<PoisoningVH<ValueTy>>;
|
||||
|
Loading…
Reference in New Issue
Block a user