diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 18:24:50 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 18:24:50 +0000 |
commit | d2b2facb0783864bab79b059e28b9d430e291b2c (patch) | |
tree | a4bc8cc634abec2bc9f6a530f3434bf12107ae56 /llvm/unittests/ADT/SCCIteratorTest.cpp | |
parent | f4e1d6fd0690be462b5d7aabc93e7c12cac629b8 (diff) | |
download | bcm5719-llvm-d2b2facb0783864bab79b059e28b9d430e291b2c.tar.gz bcm5719-llvm-d2b2facb0783864bab79b059e28b9d430e291b2c.zip |
SCC: Change clients to use const, NFC
It's fishy to be changing the `std::vector<>` owned by the iterator, and
no one actual does it, so I'm going to remove the ability in a
subsequent commit. First, update the users.
<rdar://problem/14292693>
llvm-svn: 207252
Diffstat (limited to 'llvm/unittests/ADT/SCCIteratorTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/SCCIteratorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/SCCIteratorTest.cpp b/llvm/unittests/ADT/SCCIteratorTest.cpp index 92b4b317cfb..8609732fda1 100644 --- a/llvm/unittests/ADT/SCCIteratorTest.cpp +++ b/llvm/unittests/ADT/SCCIteratorTest.cpp @@ -277,7 +277,7 @@ TEST(SCCIteratorTest, AllSmallGraphs) { 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; |