mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
ADT: Fix build after r281182
Fix this bot: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/20680 which complained that a typedef of 'iterator_adaptor_base' changed meaning in AllocatorList::IteratorImpl. Use 'base_type' there instead. llvm-svn: 281183
This commit is contained in:
parent
1af3e8d9df
commit
c06db5cb12
@ -86,7 +86,7 @@ private:
|
||||
typedef iterator_adaptor_base<IteratorImpl<ValueT, IteratorBase>,
|
||||
IteratorBase, std::bidirectional_iterator_tag,
|
||||
ValueT>
|
||||
iterator_adaptor_base;
|
||||
base_type;
|
||||
|
||||
public:
|
||||
typedef ValueT value_type;
|
||||
@ -98,15 +98,15 @@ private:
|
||||
IteratorImpl &operator=(const IteratorImpl &) = default;
|
||||
~IteratorImpl() = default;
|
||||
|
||||
explicit IteratorImpl(const IteratorBase &I) : iterator_adaptor_base(I) {}
|
||||
explicit IteratorImpl(const IteratorBase &I) : base_type(I) {}
|
||||
|
||||
template <class OtherValueT, class OtherIteratorBase>
|
||||
IteratorImpl(const IteratorImpl<OtherValueT, OtherIteratorBase> &X,
|
||||
typename std::enable_if<std::is_convertible<
|
||||
OtherIteratorBase, IteratorBase>::value>::type * = nullptr)
|
||||
: iterator_adaptor_base(X.wrapped()) {}
|
||||
: base_type(X.wrapped()) {}
|
||||
|
||||
reference operator*() const { return iterator_adaptor_base::wrapped()->V; }
|
||||
reference operator*() const { return base_type::wrapped()->V; }
|
||||
pointer operator->() const { return &operator*(); }
|
||||
|
||||
friend bool operator==(const IteratorImpl &L, const IteratorImpl &R) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user