commit | 4c1b05f822f025d4807f364e07b6a4e5696049bf | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Thu Apr 17 09:07:50 2014 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Thu Apr 17 09:07:50 2014 +0000 |
tree | ffac0b4d218c893d9dc4bd54bec7c32e16378f93 | |
parent | de4077a5d3268a4df41b418e21040fe3683b68d1 [diff] |
Make the User::value_op_iterator a random access iterator. I had written this code ages ago and lost track of it. Seems worth doing though -- this thing can get called from places that would benefit from knowing that std::distance is O(1). Also add a very fledgeling unittest for Users and make sure various aspects of this seem to work reasonably. llvm-svn: 206453