File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -693,16 +693,16 @@ class TypeDecoder {
693
693
694
694
// If the tuple element is labeled, add its label to 'labels'.
695
695
unsigned typeChildIndex = 0 ;
696
- if (element->getChild (0 )->getKind () == NodeKind::VariadicMarker) {
697
- return BuiltType (); // Reject a variadic tuple mangling
696
+ if (element->getChild (typeChildIndex )->getKind () == NodeKind::VariadicMarker) {
697
+ return BuiltType ();
698
698
}
699
- if (element->getChild (0 )->getKind () == NodeKind::TupleElementName) {
699
+ if (element->getChild (typeChildIndex )->getKind () == NodeKind::TupleElementName) {
700
700
// Add spaces to terminate all the previous labels if this
701
701
// is the first we've seen.
702
702
if (labels.empty ()) labels.append (elements.size (), ' ' );
703
703
704
704
// Add the label and its terminator.
705
- labels += element->getChild (0 )->getText ();
705
+ labels += element->getChild (typeChildIndex )->getText ();
706
706
labels += ' ' ;
707
707
typeChildIndex++;
708
708
You can’t perform that action at this time.
0 commit comments