File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
lldb/source/Plugins/Language/Swift Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1056,10 +1056,17 @@ SwiftLanguage::GetHardcodedSynthetics() {
1056
1056
}
1057
1057
auto [swift_valobj, should_wrap_in_ptr] = *maybe_swift_valobj;
1058
1058
1059
+ auto swift_type_system =
1060
+ swift_type.GetTypeSystem ().dyn_cast_or_null <TypeSystemSwift>();
1061
+ if (!swift_type_system) {
1062
+ LLDB_LOGF (log, " [Matching CxxBridgedSyntheticChildProvider] - "
1063
+ " Could not get Swift TypeSystem " );
1064
+ return nullptr ;
1065
+ }
1059
1066
CompilerType cast_target_type = swift_type;
1060
1067
if (should_wrap_in_ptr)
1061
1068
cast_target_type =
1062
- type_system_swift. GetPointerType (swift_type.GetOpaqueQualType ());
1069
+ swift_type_system-> GetPointerType (swift_type.GetOpaqueQualType ());
1063
1070
1064
1071
// Cast it to a Swift type since thhe swift runtime expects a Swift value
1065
1072
// object.
You can’t perform that action at this time.
0 commit comments