From fdb30c6e0e3a914553151ad0b3ce651bd55490aa Mon Sep 17 00:00:00 2001 From: Chandler Carruth <chandlerc@gmail.com> Date: Mon, 10 Mar 2014 08:08:47 +0000 Subject: [PATCH] [LCG] Make the iterator move constructable (and thus movable in general) now that there is essentially no cost to doing so. Yay C++11. llvm-svn: 203447 --- llvm/include/llvm/Analysis/LazyCallGraph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Analysis/LazyCallGraph.h b/llvm/include/llvm/Analysis/LazyCallGraph.h index 10a9a91a6e6f..6b93bb26a89d 100644 --- a/llvm/include/llvm/Analysis/LazyCallGraph.h +++ b/llvm/include/llvm/Analysis/LazyCallGraph.h @@ -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;