[Lldb-commits] [lldb] [lldb] Make conversions from llvm::Error explicit with Status::FromEr… (PR #107163)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 4 11:09:12 PDT 2024
================
@@ -91,9 +91,9 @@ class Status {
~Status();
- // llvm::Error support
- explicit Status(llvm::Error error) { *this = std::move(error); }
- const Status &operator=(llvm::Error error);
+ /// Avoid using this in new code. Migrate APIs to llvm::Expected instead.
+ static Status FromError(llvm::Error &&error);
----------------
labath wrote:
```suggestion
static Status FromError(llvm::Error error);
```
https://github.com/llvm/llvm-project/pull/107163
More information about the lldb-commits
mailing list