mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We assumed a bit too much about the structure of a single-argument subscript demangle tree and assumed that the argument identifier node was always in the same place. If it wasn't, we'd try to get text from the wrong node and get a bogus StringRef. Verify the node kind before trying to extract text, and handle LocalDeclName nodes as well as Identifier nodes. rdar://129886558
3.4 KiB
3.4 KiB