1. Mar 29, 2013
  2. Mar 28, 2013
    • Tareq A. Siraj's avatar
      Test commit: Remove whitespace. · c7b27081
      Tareq A. Siraj authored
      llvm-svn: 178241
      c7b27081
    • Howard Hinnant's avatar
      Seciton 24.2.2 of the C++ standard, [iterator.iterators], Table 106 · 24d7f8c3
      Howard Hinnant authored
      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&.
      
      llvm-svn: 178240
      24d7f8c3