Skip to content

Commit b3ffeb5

Browse files
committed
Read the label text from the correct child
1 parent 45810d0 commit b3ffeb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Demangling/TypeDecoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ class TypeDecoder {
705705
if (labels.empty()) labels.append(elements.size(), ' ');
706706

707707
// Add the label and its terminator.
708-
labels += element->getChild(0)->getText();
708+
labels += element->getChild(nameIdx)->getText();
709709
labels += ' ';
710710
typeChildIndex++;
711711

0 commit comments

Comments
 (0)