diff --git a/llvm/include/llvm/ADT/PointerUnion.h b/llvm/include/llvm/ADT/PointerUnion.h index 7b66177373011..d9087dd1c516e 100644 --- a/llvm/include/llvm/ADT/PointerUnion.h +++ b/llvm/include/llvm/ADT/PointerUnion.h @@ -38,11 +38,6 @@ namespace pointer_union_detail { return std::min({PointerLikeTypeTraits::NumLowBitsAvailable...}); } - /// Find the first type in a list of types. - template struct GetFirstType { - using type = T; - }; - /// Provide PointerLikeTypeTraits for void* that is used by PointerUnion /// for the template arguments. template class PointerUnionUIntTraits { @@ -264,8 +259,7 @@ struct PointerLikeTypeTraits> { // Teach DenseMap how to use PointerUnions as keys. template struct DenseMapInfo> { using Union = PointerUnion; - using FirstInfo = - DenseMapInfo::type>; + using FirstInfo = DenseMapInfo>; static inline Union getEmptyKey() { return Union(FirstInfo::getEmptyKey()); }