[Lldb-commits] [lldb] Don't cause a premature UpdateIfNeeded when checking in SBValue::GetSP (PR #80222)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 1 09:07:58 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:
----------------
adrian-prantl wrote:

`///`

https://github.com/llvm/llvm-project/pull/80222


More information about the lldb-commits mailing list