aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Utility/Status.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Utility/Status.h')
-rw-r--r--include/lldb/Utility/Status.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lldb/Utility/Status.h b/include/lldb/Utility/Status.h
index d8fd41707f8c1..d520ebd942ee4 100644
--- a/include/lldb/Utility/Status.h
+++ b/include/lldb/Utility/Status.h
@@ -104,7 +104,8 @@ public:
~Status();
// llvm::Error support
- explicit Status(llvm::Error error);
+ explicit Status(llvm::Error error) { *this = std::move(error); }
+ const Status &operator=(llvm::Error error);
llvm::Error ToError() const;
//------------------------------------------------------------------