summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/SCCIteratorTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/ADT/SCCIteratorTest.cpp')
-rw-r--r--llvm/unittests/ADT/SCCIteratorTest.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/unittests/ADT/SCCIteratorTest.cpp b/llvm/unittests/ADT/SCCIteratorTest.cpp
index 597661fd8cc..62eb0e637f6 100644
--- a/llvm/unittests/ADT/SCCIteratorTest.cpp
+++ b/llvm/unittests/ADT/SCCIteratorTest.cpp
@@ -229,15 +229,16 @@ public:
template <unsigned N>
struct GraphTraits<Graph<N> > {
- typedef typename Graph<N>::NodeType NodeType;
typedef typename Graph<N>::NodeType *NodeRef;
typedef typename Graph<N>::ChildIterator ChildIteratorType;
- static inline NodeType *getEntryNode(const Graph<N> &G) { return G.AccessNode(0); }
- static inline ChildIteratorType child_begin(NodeType *Node) {
- return Graph<N>::child_begin(Node);
+ static inline NodeRef getEntryNode(const Graph<N> &G) {
+ return G.AccessNode(0);
+ }
+ static inline ChildIteratorType child_begin(NodeRef Node) {
+ return Graph<N>::child_begin(Node);
}
- static inline ChildIteratorType child_end(NodeType *Node) {
+ static inline ChildIteratorType child_end(NodeRef Node) {
return Graph<N>::child_end(Node);
}
};
OpenPOWER on IntegriCloud