================
@@ -37,6 +37,72 @@ char PersistentExpressionState::ID;
PersistentExpressionState::PersistentExpressionState() = default;
+void ExpressionVariable::TransferAddress(bool force) {
+ if (!m_live_sp)
+ return;
+
+ if (!m_frozen_sp)
+ return;
+
+ if (force || (m_frozen_sp->GetLiveAddress() == LLDB_INVALID_ADDRESS)) {
+ lldb::addr_t live_addr = m_live_sp->GetLiveAddress();
+ m_frozen_sp->SetLiveAddress(live_addr);
----------------
kastiglione wrote:
@jimingham should there be a check that `live_addr` is not also
`LLDB_INVALID_ADDRESS`?
https://github.com/llvm/llvm-project/pull/168611
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits