Commit f874092
authored
[Clang][Sema] Check the return value of DiagnoseClassNameShadow in ActOnEnumConstant (llvm#143754)
Static analysis flagged that we were not checking the return value of
DiagnoseClassNameShadow when we did so everywhere else. Modifying this
case to match how other places uses it makes sense and does not change
behavior. Likely if this check fails later actions will fail as well but
it is more correct to exit early.1 parent ddae3b7 commit f874092
2 files changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20270 | 20270 | | |
20271 | 20271 | | |
20272 | 20272 | | |
20273 | | - | |
20274 | | - | |
20275 | | - | |
| 20273 | + | |
| 20274 | + | |
| 20275 | + | |
| 20276 | + | |
20276 | 20277 | | |
20277 | 20278 | | |
20278 | 20279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
0 commit comments