From 0bc56dacbaa23a0798ffa88d7e93a2e92fbc0895 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 4 Mar 2015 17:01:18 +0000 Subject: [PATCH] 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. llvm-svn: 231256 --- llvm/unittests/ADT/ilistTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/unittests/ADT/ilistTest.cpp b/llvm/unittests/ADT/ilistTest.cpp index 44442ebf75ad..9127b05b4b8f 100644 --- a/llvm/unittests/ADT/ilistTest.cpp +++ b/llvm/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; } };