[Lldb-commits] [lldb] e1451a7 - [lldb][NFCI] Rename variable in ValueObject

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 30 16:53:58 PST 2020


Author: Alex Langford
Date: 2020-01-30T16:53:01-08:00
New Revision: e1451a724de743f1634c864205b77196edbd527e

URL: https://github.com/llvm/llvm-project/commit/e1451a724de743f1634c864205b77196edbd527e
DIFF: https://github.com/llvm/llvm-project/commit/e1451a724de743f1634c864205b77196edbd527e.diff

LOG: [lldb][NFCI] Rename variable in ValueObject

Added: 
    

Modified: 
    lldb/source/Core/ValueObject.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 283ab309e314..99def5512088 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -3278,12 +3278,12 @@ ValueObjectSP ValueObject::Persist() {
   ValueObjectSP const_result_sp =
       ValueObjectConstResult::Create(target_sp.get(), GetValue(), name);
 
-  ExpressionVariableSP clang_var_sp =
+  ExpressionVariableSP persistent_var_sp =
       persistent_state->CreatePersistentVariable(const_result_sp);
-  clang_var_sp->m_live_sp = clang_var_sp->m_frozen_sp;
-  clang_var_sp->m_flags |= ExpressionVariable::EVIsProgramReference;
+  persistent_var_sp->m_live_sp = persistent_var_sp->m_frozen_sp;
+  persistent_var_sp->m_flags |= ExpressionVariable::EVIsProgramReference;
 
-  return clang_var_sp->GetValueObject();
+  return persistent_var_sp->GetValueObject();
 }
 
 bool ValueObject::IsSyntheticChildrenGenerated() {


        


More information about the lldb-commits mailing list