[Lldb-commits] [lldb] Don't cause a premature UpdateIfNeeded when checking in SBValue::GetSP (PR #80222)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 31 16:50:31 PST 2024
================
@@ -458,7 +458,12 @@ class ValueObject {
virtual bool GetDeclaration(Declaration &decl);
// The functions below should NOT be modified by subclasses
+ // This gets the current error for this ValueObject, it may update the value
+ // to ensure that the error is up to date.
const Status &GetError();
+
+ // Check the current error state without updating the value:
+ const Status &CheckError() { return m_error; }
----------------
clayborg wrote:
`PeekError()`?
https://github.com/llvm/llvm-project/pull/80222
More information about the lldb-commits
mailing list