Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit b94ad97

Browse files
committed
[LCG] Make the iterator move constructable (and thus movable in general)
now that there is essentially no cost to doing so. Yay C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203447 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3b89e52 commit b94ad97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/llvm/Analysis/LazyCallGraph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class LazyCallGraph {
132132

133133
public:
134134
iterator(const iterator &Arg) : G(Arg.G), NI(Arg.NI) {}
135-
135+
iterator(iterator &&Arg) : G(Arg.G), NI(std::move(Arg.NI)) {}
136136
iterator &operator=(iterator Arg) {
137137
std::swap(Arg, *this);
138138
return *this;

0 commit comments

Comments
 (0)