Commit 1a08891
committed
[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://1298865581 parent d07e8ce commit 1a08891
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 | |
|---|---|---|---|
| |||
3626 | 3626 | | |
3627 | 3627 | | |
3628 | 3628 | | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
3629 | 3640 | | |
3630 | 3641 | | |
3631 | 3642 | | |
| |||
3644 | 3655 | | |
3645 | 3656 | | |
3646 | 3657 | | |
3647 | | - | |
3648 | | - | |
3649 | | - | |
3650 | | - | |
3651 | | - | |
| 3658 | + | |
| 3659 | + | |
3652 | 3660 | | |
3653 | 3661 | | |
3654 | 3662 | | |
| |||
3663 | 3671 | | |
3664 | 3672 | | |
3665 | 3673 | | |
3666 | | - | |
| 3674 | + | |
3667 | 3675 | | |
3668 | 3676 | | |
3669 | 3677 | | |
| |||
| 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