File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3952,9 +3952,15 @@ void Metadata::dump() const {
3952
3952
printf (" Kind: %s.\n " , getStringForMetadataKind (getKind ()).data ());
3953
3953
printf (" Value Witnesses: %p.\n " , getValueWitnesses ());
3954
3954
3955
- auto *contextDescriptor = getTypeContextDescriptor ();
3956
- printf (" Name: %s.\n " , contextDescriptor->Name .get ());
3957
- printf (" Type Context Description: %p.\n " , contextDescriptor);
3955
+ if (auto *contextDescriptor = getTypeContextDescriptor ()) {
3956
+ printf (" Name: %s.\n " , contextDescriptor->Name .get ());
3957
+ printf (" Type Context Description: %p.\n " , contextDescriptor);
3958
+ }
3959
+
3960
+ if (auto *tuple = dyn_cast<TupleTypeMetadata>(this )) {
3961
+ printf (" Labels: %s.\n " , tuple->Labels );
3962
+ }
3963
+
3958
3964
printf (" Generic Args: %p.\n " , getGenericArgs ());
3959
3965
3960
3966
#if SWIFT_OBJC_INTEROP
You can’t perform that action at this time.
0 commit comments