summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-03-03 18:29:25 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-03-03 18:29:25 +0000
commitd36b63077fc8664577296dfdf8c35e8af9d4bda6 (patch)
tree04d9bf940d31b322febac525438682ddf63afeb3
parent700d9c307377489ebdaa5ee2a9f2c5cbf7a53ba6 (diff)
downloadbcm5719-llvm-d36b63077fc8664577296dfdf8c35e8af9d4bda6.tar.gz
bcm5719-llvm-d36b63077fc8664577296dfdf8c35e8af9d4bda6.zip
Twine: Explicitly default the copy ctor as it's otherwise deprecated in C++11 by the presence of a user-declared copy assignment operator.
llvm-svn: 231094
-rw-r--r--llvm/include/llvm/ADT/Twine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/Twine.h b/llvm/include/llvm/ADT/Twine.h
index 9e9a4e1ad2c..5f8909e88a1 100644
--- a/llvm/include/llvm/ADT/Twine.h
+++ b/llvm/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
OpenPOWER on IntegriCloud