summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Error.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-10-11 23:54:34 +0000
committerZachary Turner <zturner@google.com>2017-10-11 23:54:34 +0000
commit41a9ee98f9fb16d463667e28e56fb42c962e91ce (patch)
tree3190cb8adff093b171c4393d18d4c136b8a1195b /llvm/lib/Object/Error.cpp
parentc18c12e3850b5a4354d19c67b89b42220b8ae4c8 (diff)
downloadbcm5719-llvm-41a9ee98f9fb16d463667e28e56fb42c962e91ce.tar.gz
bcm5719-llvm-41a9ee98f9fb16d463667e28e56fb42c962e91ce.zip
Revert "[ADT] Make Twine's copy constructor private."
This reverts commit 4e4ee1c507e2707bb3c208e1e1b6551c3015cbf5. This is failing due to some code that isn't built on MSVC so I didn't catch. Not immediately obvious how to fix this at first glance, so I'm reverting for now. llvm-svn: 315536
Diffstat (limited to 'llvm/lib/Object/Error.cpp')
-rw-r--r--llvm/lib/Object/Error.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Object/Error.cpp b/llvm/lib/Object/Error.cpp
index d4ab9163886..7d43a84f3e0 100644
--- a/llvm/lib/Object/Error.cpp
+++ b/llvm/lib/Object/Error.cpp
@@ -60,10 +60,9 @@ std::string _object_error_category::message(int EV) const {
char BinaryError::ID = 0;
char GenericBinaryError::ID = 0;
-GenericBinaryError::GenericBinaryError(const Twine &Msg) : Msg(Msg.str()) {}
+GenericBinaryError::GenericBinaryError(Twine Msg) : Msg(Msg.str()) {}
-GenericBinaryError::GenericBinaryError(const Twine &Msg,
- object_error ECOverride)
+GenericBinaryError::GenericBinaryError(Twine Msg, object_error ECOverride)
: Msg(Msg.str()) {
setErrorCode(make_error_code(ECOverride));
}
OpenPOWER on IntegriCloud