projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove the explicit SDNodeIterator::operator= in favor of the implicit default
[oota-llvm.git]
/
unittests
/
ADT
/
ilistTest.cpp
diff --git
a/unittests/ADT/ilistTest.cpp
b/unittests/ADT/ilistTest.cpp
index 44442ebf75adc69bf8c50dff8460a699f631dd0c..40b44ce3ca994caddef2a7b3cdb0ec70a99cf791 100644
(file)
--- a/
unittests/ADT/ilistTest.cpp
+++ b/
unittests/ADT/ilistTest.cpp
@@
-21,7
+21,9
@@
struct Node : ilist_node<Node> {
int Value;
Node() {}
- Node(int _Value) : Value(_Value) {}
+ Node(int Value) : Value(Value) {}
+ Node(const Node&) = default;
+ Node(Node &&RHS) : Value(RHS.Value) { RHS.Value = -1; }
~Node() { Value = -1; }
};