diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-03-03 18:29:25 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-03-03 18:29:25 +0000 |
| commit | d36b63077fc8664577296dfdf8c35e8af9d4bda6 (patch) | |
| tree | 04d9bf940d31b322febac525438682ddf63afeb3 | |
| parent | 700d9c307377489ebdaa5ee2a9f2c5cbf7a53ba6 (diff) | |
| download | bcm5719-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.h | 2 |
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 |

