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

Commit 31da39e

Browse files
committed
[LCG] Make this call graph a fully regular type by giving it assignment
as well. I don't see any particular need but it imposes no cost to support it and it makes the API cleaner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203448 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b94ad97 commit 31da39e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/llvm/Analysis/LazyCallGraph.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ class LazyCallGraph {
192192
/// Any other operation on G is likely to fail.
193193
LazyCallGraph(LazyCallGraph &&G);
194194

195+
/// \brief Copy and move assignment.
196+
LazyCallGraph &operator=(LazyCallGraph RHS) {
197+
std::swap(*this, RHS);
198+
return *this;
199+
}
200+
195201
iterator begin() { return iterator(*this, EntryNodes); }
196202
iterator end() { return iterator(*this, EntryNodes, iterator::IsAtEndT()); }
197203

0 commit comments

Comments
 (0)