summaryrefslogtreecommitdiffstats
path: root/llvm/tools/obj2yaml/Error.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/obj2yaml/Error.h')
-rw-r--r--llvm/tools/obj2yaml/Error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/obj2yaml/Error.h b/llvm/tools/obj2yaml/Error.h
index f4e191c872c..f5111f257ce 100644
--- a/llvm/tools/obj2yaml/Error.h
+++ b/llvm/tools/obj2yaml/Error.h
@@ -33,7 +33,7 @@ class Obj2YamlError : public ErrorInfo<Obj2YamlError> {
public:
static char ID;
Obj2YamlError(obj2yaml_error C) : Code(C) {}
- Obj2YamlError(const std::string &ErrMsg) : ErrMsg(std::move(ErrMsg)) {}
+ Obj2YamlError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {}
Obj2YamlError(obj2yaml_error C, std::string ErrMsg)
: ErrMsg(std::move(ErrMsg)), Code(C) {}
void log(raw_ostream &OS) const override;
OpenPOWER on IntegriCloud