Skip to content

Commit 17f8d66

Browse files
Merge pull request swiftlang#7613 from adrian-prantl/recover-from-merge-725
Reintroduce Swift typesystem aftewr bad merge resolution
2 parents d0d3673 + f849233 commit 17f8d66

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lldb/source/Plugins/Language/Swift/SwiftLanguage.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,10 +1056,17 @@ SwiftLanguage::GetHardcodedSynthetics() {
10561056
}
10571057
auto [swift_valobj, should_wrap_in_ptr] = *maybe_swift_valobj;
10581058

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+
}
10591066
CompilerType cast_target_type = swift_type;
10601067
if (should_wrap_in_ptr)
10611068
cast_target_type =
1062-
type_system_swift.GetPointerType(swift_type.GetOpaqueQualType());
1069+
swift_type_system->GetPointerType(swift_type.GetOpaqueQualType());
10631070

10641071
// Cast it to a Swift type since thhe swift runtime expects a Swift value
10651072
// object.

0 commit comments

Comments
 (0)