Commit e5e6004
committed
Don't set HasPotentialFeatureAvailabilityViolations in ActOnLabelStmt
Set it in ActOnObjCAvailabilityCheckExpr instead. Without this change,
DiagnoseUnguardedFeatureAvailability scans the whole function when there
is a label in it even when there are no Decls annotated with feature
availability that are referenced in the function and there are no
ObjCAvailabilityCheckExprs.
rdar://1461398271 parent b03fbba commit e5e6004
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5154 | 5154 | | |
5155 | 5155 | | |
5156 | 5156 | | |
| 5157 | + | |
| 5158 | + | |
5157 | 5159 | | |
5158 | 5160 | | |
5159 | 5161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | 605 | | |
609 | 606 | | |
610 | 607 | | |
| |||
0 commit comments