projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b89e52
)
[LCG] Make the iterator move constructable (and thus movable in general)
author
Chandler Carruth
<chandlerc@gmail.com>
Mon, 10 Mar 2014 08:08:47 +0000
(08:08 +0000)
committer
Chandler 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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203447
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/LazyCallGraph.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/LazyCallGraph.h
b/include/llvm/Analysis/LazyCallGraph.h
index 10a9a91a6e6f07459328874daea642c0147ddb56..6b93bb26a89dfe453d9b344dbe4f42c26e902063 100644
(file)
--- a/
include/llvm/Analysis/LazyCallGraph.h
+++ b/
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;