summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-03-04 07:35:02 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-03-04 07:35:02 +0000
commit4e152576567fcdc6b1f1231cf517c75f3eec1d83 (patch)
tree82a7f2833910ce92d10a472ce5b676b44c8b4107 /llvm
parent4d7eb730e40eb585cf46f44bef1238d2e6a2c09a (diff)
downloadbcm5719-llvm-4e152576567fcdc6b1f1231cf517c75f3eec1d83.tar.gz
bcm5719-llvm-4e152576567fcdc6b1f1231cf517c75f3eec1d83.zip
Make format_object_base explicitly copyable, so format_objects can be copied without relying on the implicit copy ctor
Use of the implicit copy ctor is deprecated in C++11 in the presence of a user declared dtor. llvm-svn: 231222
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/Format.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Format.h b/llvm/include/llvm/Support/Format.h
index 682c5a99161..0bb8cbbc6e6 100644
--- a/llvm/include/llvm/Support/Format.h
+++ b/llvm/include/llvm/Support/Format.h
@@ -38,6 +38,7 @@ class format_object_base {
protected:
const char *Fmt;
~format_object_base() {} // Disallow polymorphic deletion.
+ format_object_base(const format_object_base&) = default;
virtual void home(); // Out of line virtual method.
/// Call snprintf() for this object, on the given buffer and size.
OpenPOWER on IntegriCloud