Howard Hinnant
aab2305454
Seciton 24.2.2 of the C++ standard, [iterator.iterators], Table 106
...
requires that the return type of *r for all iterators r be reference,
where reference is defined in [iterator.requirements.general]/p11 as
iterator_traits<X>::reference, and X is the type of r.
But in CFG.h, the dereference operator of PredIterator and SuccIterator
return pointer, not reference.
Furthermore the nested type reference is value_type&, which is not the
type returned from operator*().
This patch simply makes the iterator::reference type value_type*, which
is what the operator*() returns, and then re-lables the return type as
reference.
From a functionality point of view, the only difference is that the
nested reference type is now value_type* instead of value_type&.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178240 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-28 15:47:50 +00:00
..
2013-01-09 10:39:16 +00:00
2012-12-03 17:02:12 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-03-18 23:33:44 +00:00
2013-03-27 16:43:11 +00:00
2013-03-28 15:47:50 +00:00
2012-11-15 16:51:49 +00:00
2013-01-10 00:45:19 +00:00
2013-03-06 19:04:56 +00:00
2013-03-22 03:10:51 +00:00
2013-01-02 11:36:10 +00:00
2013-01-10 00:45:19 +00:00
2013-02-13 22:45:52 +00:00
2013-02-05 23:26:02 +00:00
2013-01-02 11:36:10 +00:00
2013-01-10 00:45:19 +00:00
2013-03-18 23:04:30 +00:00
2013-01-25 07:45:25 +00:00
2013-02-05 23:30:58 +00:00
2013-01-10 00:45:19 +00:00
2013-03-26 10:56:47 +00:00
2013-01-02 20:14:11 +00:00
2013-01-10 00:45:19 +00:00
2013-03-27 18:27:54 +00:00
2013-02-28 01:44:26 +00:00
2013-03-25 13:13:33 +00:00
2012-12-03 22:09:52 +00:00
2013-03-14 00:20:10 +00:00
2012-09-14 14:57:36 +00:00
2012-09-23 02:12:10 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-01-25 07:45:25 +00:00
2013-01-16 17:27:22 +00:00
2013-01-10 00:45:19 +00:00
2013-01-02 11:36:10 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 02:01:35 +00:00
2013-02-27 18:25:41 +00:00
2013-01-10 00:45:19 +00:00
2012-09-16 21:37:56 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2012-09-17 06:31:17 +00:00
2013-01-02 11:36:10 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-01-07 18:37:41 +00:00
2012-12-03 17:02:12 +00:00
2012-09-23 02:12:10 +00:00
2013-01-10 00:45:19 +00:00
2013-03-26 23:35:00 +00:00
2012-09-23 02:12:10 +00:00
2013-02-18 23:11:17 +00:00
2013-01-04 22:35:45 +00:00
2012-11-28 19:00:02 +00:00
2012-09-17 06:31:17 +00:00
2013-01-10 00:45:19 +00:00
2012-09-16 21:37:56 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 05:23:59 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 18:50:15 +00:00
2013-01-10 00:45:19 +00:00
2012-12-03 17:02:12 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-01-02 11:36:10 +00:00
2012-12-20 14:43:30 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-02-26 18:05:31 +00:00
2013-02-19 11:35:39 +00:00
2013-01-10 00:45:19 +00:00
2013-03-27 16:43:11 +00:00
2012-12-03 17:02:12 +00:00
2013-03-27 16:43:11 +00:00
2013-03-26 01:27:52 +00:00
2012-12-05 20:12:13 +00:00
2013-01-10 00:45:19 +00:00
2013-01-13 16:01:15 +00:00