@@ -910,9 +910,9 @@ namespace {
910
910
TC.Context .Diags .diagnose (StartLoc, diag::empty_switch_stmt)
911
911
.fixItInsert (EndLoc, Buffer.str ());
912
912
} else {
913
- Ctx .Diags .diagnose (StartLoc, diag::non_exhaustive_switch);
914
- Ctx .Diags .diagnose (StartLoc, diag::missing_several_cases,
915
- uncovered.isEmpty ()).fixItInsert (EndLoc,
913
+ TC. Context .Diags .diagnose (StartLoc, diag::non_exhaustive_switch);
914
+ TC. Context .Diags .diagnose (StartLoc, diag::missing_several_cases,
915
+ uncovered.isEmpty ()).fixItInsert (EndLoc,
916
916
Buffer.str ());
917
917
}
918
918
return ;
@@ -945,11 +945,11 @@ namespace {
945
945
}
946
946
}
947
947
948
- Ctx .Diags .diagnose (StartLoc, diag::non_exhaustive_switch);
949
- Ctx .Diags .diagnose (StartLoc, diag::missing_several_cases, false )
948
+ TC. Context .Diags .diagnose (StartLoc, diag::non_exhaustive_switch);
949
+ TC. Context .Diags .diagnose (StartLoc, diag::missing_several_cases, false )
950
950
.fixItInsert (EndLoc, Buffer.str ());
951
951
} else {
952
- Ctx .Diags .diagnose (StartLoc, diag::non_exhaustive_switch);
952
+ TC. Context .Diags .diagnose (StartLoc, diag::non_exhaustive_switch);
953
953
954
954
for (auto &uncoveredSpace : uncovered.getSpaces ()) {
955
955
SmallVector<Space, 4 > flats;
0 commit comments