Commit 6c4fe27
committed
[6.0][Runtime] Fix printing keypaths with LocalDeclName subscript types.
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
(cherry picked from commit 1a08891)1 parent a823cad commit 6c4fe27
File tree
2 files changed
+27
-6
lines changed- lib/Demangling
- test/Interpreter
2 files changed
+27
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3617 | 3617 | | |
3618 | 3618 | | |
3619 | 3619 | | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
3620 | 3631 | | |
3621 | 3632 | | |
3622 | 3633 | | |
| |||
3635 | 3646 | | |
3636 | 3647 | | |
3637 | 3648 | | |
3638 | | - | |
3639 | | - | |
3640 | | - | |
3641 | | - | |
3642 | | - | |
| 3649 | + | |
| 3650 | + | |
3643 | 3651 | | |
3644 | 3652 | | |
3645 | 3653 | | |
| |||
3654 | 3662 | | |
3655 | 3663 | | |
3656 | 3664 | | |
3657 | | - | |
| 3665 | + | |
3658 | 3666 | | |
3659 | 3667 | | |
3660 | 3668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
0 commit comments