Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions llvm/include/llvm/ADT/ilist_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,10 @@ template <class OptionsT> class ilist_sentinel;

// Selector for which iterator type to pick given the iterator-bits node option.
template <bool use_iterator_bits, typename Opts, bool arg1, bool arg2>
class ilist_select_iterator_type {
public:
using type = ilist_iterator<Opts, arg1, arg2>;
};
template <typename Opts, bool arg1, bool arg2>
class ilist_select_iterator_type<true, Opts, arg1, arg2> {
public:
using type = ilist_iterator_w_bits<Opts, arg1, arg2>;
struct ilist_select_iterator_type {
using type = std::conditional_t<use_iterator_bits,
ilist_iterator_w_bits<Opts, arg1, arg2>,
ilist_iterator<Opts, arg1, arg2>>;
};

/// Implementation for an ilist node.
Expand Down