projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7945c8a
)
Explicitly default ilistTest::Node's copy constructor
author
David Blaikie
<dblaikie@gmail.com>
Wed, 4 Mar 2015 17:01:18 +0000
(17:01 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 4 Mar 2015 17:01:18 +0000
(17:01 +0000)
In the presence of a user-declared dtor, calling an implicit copy ctor
is deprecated in C++11.
llvm-svn: 231256
llvm/unittests/ADT/ilistTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/ADT/ilistTest.cpp
b/llvm/unittests/ADT/ilistTest.cpp
index
44442eb
..
9127b05
100644
(file)
--- a/
llvm/unittests/ADT/ilistTest.cpp
+++ b/
llvm/unittests/ADT/ilistTest.cpp
@@
-21,7
+21,8
@@
struct Node : ilist_node<Node> {
int Value;
Node() {}
- Node(int _Value) : Value(_Value) {}
+ Node(int Value) : Value(Value) {}
+ Node(const Node&) = default;
~Node() { Value = -1; }
};