diff options
| author | Dean Michael Berris <dberris@google.com> | 2017-01-24 04:11:18 +0000 |
|---|---|---|
| committer | Dean Michael Berris <dberris@google.com> | 2017-01-24 04:11:18 +0000 |
| commit | 227c6ebc663bffc48b8ac191d00b4d06ca27a53e (patch) | |
| tree | 7d92a8913520c123e68cd8e812674766df635ed0 /llvm/unittests/ADT/IListNodeBaseTest.cpp | |
| parent | b2a23cf3c08cee45614f27eb2c6d044e506aa6a6 (diff) | |
| download | bcm5719-llvm-227c6ebc663bffc48b8ac191d00b4d06ca27a53e.tar.gz bcm5719-llvm-227c6ebc663bffc48b8ac191d00b4d06ca27a53e.zip | |
Allow DenseSet::iterators to be conveted to and compared with const_iterator
Summary:
This seemed to be an oversight seeing as DenseMap has these conversions.
This patch does the following:
- Adds a default constructor to the iterators.
- Allows DenseSet::ConstIterators to be copy constructed from DenseSet::Iterators
- Allows mutual comparison between Iterators and ConstIterators.
All of these are available in the DenseMap implementation, so the implementation here is trivial.
Reviewers: dblaikie, dberris
Reviewed By: dberris
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D28999
llvm-svn: 292879
Diffstat (limited to 'llvm/unittests/ADT/IListNodeBaseTest.cpp')
0 files changed, 0 insertions, 0 deletions

