[ADT] Delete unused llvm::pointer_union_detail::AssignableFrom

Noticed by Zhiwei Chen
This commit is contained in:
Fangrui Song 2020-07-22 09:23:52 -07:00
parent 44a6bda19b
commit 25203e7e3e
1 changed files with 0 additions and 7 deletions

View File

@ -93,13 +93,6 @@ namespace pointer_union_detail {
static constexpr int NumLowBitsAvailable = lowBitsAvailable<PTs...>();
};
/// Implement assignment in terms of construction.
template <typename Derived, typename T> struct AssignableFrom {
Derived &operator=(T t) {
return static_cast<Derived &>(*this) = Derived(t);
}
};
template <typename Derived, typename ValTy, int I, typename ...Types>
class PointerUnionMembers;