From 6283687346d84cbd4255d924ce7e53831885a98f Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 3 Mar 2015 18:29:25 +0000 Subject: [PATCH] Twine: Explicitly default the copy ctor as it's otherwise deprecated in C++11 by the presence of a user-declared copy assignment operator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231094 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/Twine.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/ADT/Twine.h b/include/llvm/ADT/Twine.h index 9e9a4e1ad2c..5f8909e88a1 100644 --- a/include/llvm/ADT/Twine.h +++ b/include/llvm/ADT/Twine.h @@ -257,6 +257,8 @@ namespace llvm { assert(isValid() && "Invalid twine!"); } + Twine(const Twine &) = default; + /// Construct from a C string. /// /// We take care here to optimize "" into the empty twine -- this will be -- 2.34.1