Commit 38832a8
authored
[clang] fix obtaining EnumDecl for UsingEnumDecl (#156127)
Use the castAs acessor for the type for a UsingEnumDecl, as it can be
sugar for an EnumType.
Fixes a regression reported here:
#155313 (comment)
Since this regression was never released, there are no release notes.1 parent 26bbc3a commit 38832a8
File tree
2 files changed
+13
-1
lines changed- clang
- include/clang/AST
- test/SemaTemplate
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3826 | 3826 | | |
3827 | 3827 | | |
3828 | 3828 | | |
3829 | | - | |
| 3829 | + | |
3830 | 3830 | | |
3831 | 3831 | | |
3832 | 3832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments