Skip to content

Commit f973800

Browse files
committed
[upstreaming] Revert reordering of CalculateProcess call
1 parent 9df80c3 commit f973800

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Expression/Materializer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,6 @@ class EntityResultVariable : public Materializer::Entity {
959959
: persistent_state->GetNextPersistentVariableName(
960960
*target_sp, persistent_state->GetPersistentVariablePrefix());
961961

962-
lldb::ProcessSP process_sp =
963-
map.GetBestExecutionContextScope()->CalculateProcess();
964-
965962
lldb::ExpressionVariableSP ret = persistent_state->CreatePersistentVariable(
966963
exe_scope, name, m_type, map.GetByteOrder(), map.GetAddressByteSize());
967964

@@ -972,6 +969,9 @@ class EntityResultVariable : public Materializer::Entity {
972969
return;
973970
}
974971

972+
lldb::ProcessSP process_sp =
973+
map.GetBestExecutionContextScope()->CalculateProcess();
974+
975975
if (m_delegate) {
976976
m_delegate->DidDematerialize(ret);
977977
}

0 commit comments

Comments
 (0)