[LCG] Make the iterator move constructable (and thus movable in general)
authorChandler Carruth <chandlerc@gmail.com>
Mon, 10 Mar 2014 08:08:47 +0000 (08:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 10 Mar 2014 08:08:47 +0000 (08:08 +0000)
now that there is essentially no cost to doing so. Yay C++11.

llvm-svn: 203447

llvm/include/llvm/Analysis/LazyCallGraph.h

index 10a9a91..6b93bb2 100644 (file)
@@ -132,7 +132,7 @@ public:
 
   public:
     iterator(const iterator &Arg) : G(Arg.G), NI(Arg.NI) {}
-
+    iterator(iterator &&Arg) : G(Arg.G), NI(std::move(Arg.NI)) {}
     iterator &operator=(iterator Arg) {
       std::swap(Arg, *this);
       return *this;