File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -510,14 +510,15 @@ class EntityVariableBase : public Materializer::Entity {
510
510
valobj_sp->GetAddressOf (scalar_is_load_address, &address_type);
511
511
512
512
// BEGIN Swift.
513
- if (lldb::ProcessSP process_sp =
514
- map.GetBestExecutionContextScope ()->CalculateProcess ())
515
- if (auto runtime = process_sp->GetLanguageRuntime (
516
- valobj_type.GetMinimumLanguage ())) {
517
- Status read_error;
518
- addr_of_valobj =
519
- runtime->FixupAddress (addr_of_valobj, valobj_type, read_error);
520
- }
513
+ if (addr_of_valobj != LLDB_INVALID_ADDRESS)
514
+ if (lldb::ProcessSP process_sp =
515
+ map.GetBestExecutionContextScope ()->CalculateProcess ())
516
+ if (auto runtime = process_sp->GetLanguageRuntime (
517
+ valobj_type.GetMinimumLanguage ())) {
518
+ Status read_error;
519
+ addr_of_valobj =
520
+ runtime->FixupAddress (addr_of_valobj, valobj_type, read_error);
521
+ }
521
522
// END Swift.
522
523
523
524
if (addr_of_valobj != LLDB_INVALID_ADDRESS) {
You can’t perform that action at this time.
0 commit comments