[Lldb-commits] [lldb] [lldb] Change the implementation of Status to store an llvm::Error (NFC) (PR #106774)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 30 11:27:50 PDT 2024
================
@@ -145,10 +194,12 @@ class Status {
bool Success() const;
protected:
- /// Status code as an integer value.
- ValueType m_code = 0;
- /// The type of the above error code.
- lldb::ErrorType m_type = lldb::eErrorTypeInvalid;
+ Status(llvm::Error &&error) : m_error(std::move(error)) {}
+ mutable llvm::Error m_error;
+ // /// Status code as an integer value.
+ // ValueType m_code = 0;
+ // /// The type of the above error code.
+ // lldb::ErrorType m_type = lldb::eErrorTypeInvalid;
----------------
JDevlieghere wrote:
I guess this can go now.
https://github.com/llvm/llvm-project/pull/106774
More information about the lldb-commits
mailing list