llvm-6502/include/llvm
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
..
ADT Cleanup the simplify_type implementation. 2013-03-27 16:43:11 +00:00
Analysis Fix SCEV forgetMemoizedResults should search and destroy backedge exprs. 2013-03-26 03:14:53 +00:00
Assembly
Bitcode
CodeGen Cleanup the simplify_type implementation. 2013-03-27 16:43:11 +00:00
Config Refine fenv.h handling: check if the desired macros exist, before using 2013-03-25 13:13:33 +00:00
DebugInfo
ExecutionEngine Silence anonymous type in anonymous union warnings. 2013-03-15 00:42:55 +00:00
IR Cleanup the simplify_type implementation. 2013-03-27 16:43:11 +00:00
IRReader Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
MC Dead code. 2013-03-19 22:12:47 +00:00
Object Revert "Updated ELF relocation test for .eh_frame section" 2013-03-28 05:14:26 +00:00
Option
Support Seciton 24.2.2 of the C++ standard, [iterator.iterators], Table 106 2013-03-28 15:47:50 +00:00
TableGen Make sure TableGen exits with an error code after printing errors. 2013-03-20 20:43:11 +00:00
Target Add SchedRW as an Instruction field. 2013-03-15 22:51:13 +00:00
Transforms [ASan] emit instrumentation for initialization order checking by default 2013-03-14 12:38:58 +00:00
AutoUpgrade.h
CMakeLists.txt
DebugInfo.h Revert "Adding DIImportedModules to DIScopes." 2013-03-28 02:44:59 +00:00
DIBuilder.h Revert "Adding DIImportedModules to DIScopes." 2013-03-28 02:44:59 +00:00
GVMaterializer.h
InitializePasses.h
InstVisitor.h
LinkAllIR.h
LinkAllPasses.h
Linker.h The Linker interface has some dead code after the cleanup in r172749 2013-03-19 15:26:24 +00:00
Pass.h
PassAnalysisSupport.h
PassManager.h
PassManagers.h
PassRegistry.h
PassSupport.h