Mercurial > hg > CbC > CbC_llvm
diff unittests/ADT/SCCIteratorTest.cpp @ 77:54457678186b LLVM3.6
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | 95c75e76d11b |
children | afa8332a0e37 |
line wrap: on
line diff
--- a/unittests/ADT/SCCIteratorTest.cpp Thu Dec 12 15:22:36 2013 +0900 +++ b/unittests/ADT/SCCIteratorTest.cpp Mon Sep 08 22:06:00 2014 +0900 @@ -213,7 +213,7 @@ // Return a pointer to it. return FirstNode + i; assert(false && "Dereferencing end iterator!"); - return 0; // Avoid compiler warning. + return nullptr; // Avoid compiler warning. } }; @@ -277,7 +277,7 @@ GT::NodeSubset NodesInSomeSCC; for (scc_iterator<GT> I = scc_begin(G), E = scc_end(G); I != E; ++I) { - std::vector<GT::NodeType*> &SCC = *I; + const std::vector<GT::NodeType *> &SCC = *I; // Get the nodes in this SCC as a NodeSubset rather than a vector. GT::NodeSubset NodesInThisSCC;