Commit 41e1b10
committed
[Clang][Sema] Check the return value of DiagnoseClassNameShadow in ActOnEnumConstant
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 54e72d1 commit 41e1b10
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20134 | 20134 | | |
20135 | 20135 | | |
20136 | 20136 | | |
20137 | | - | |
20138 | | - | |
20139 | | - | |
| 20137 | + | |
| 20138 | + | |
| 20139 | + | |
| 20140 | + | |
20140 | 20141 | | |
20141 | 20142 | | |
20142 | 20143 | | |
| |||
0 commit comments