From: David Blaikie Date: Wed, 4 Mar 2015 17:01:18 +0000 (+0000) Subject: Explicitly default ilistTest::Node's copy constructor X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40e20ea8cee5f4233213b411363b56ccb3c3dd1b;p=oota-llvm.git Explicitly default ilistTest::Node's copy constructor In the presence of a user-declared dtor, calling an implicit copy ctor is deprecated in C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231256 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/ilistTest.cpp b/unittests/ADT/ilistTest.cpp index 44442ebf75a..9127b05b4b8 100644 --- a/unittests/ADT/ilistTest.cpp +++ b/unittests/ADT/ilistTest.cpp @@ -21,7 +21,8 @@ struct Node : ilist_node { int Value; Node() {} - Node(int _Value) : Value(_Value) {} + Node(int Value) : Value(Value) {} + Node(const Node&) = default; ~Node() { Value = -1; } };