File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -848,19 +848,14 @@ ParameterListInfo::ParameterListInfo(
848
848
return ;
849
849
}
850
850
851
- switch (params.size ()) {
852
- case 0 :
851
+ if (params.empty ())
853
852
return ;
854
853
855
- default :
856
- // Arguments and parameters are not guaranteed to always line-up
857
- // perfectly, e.g. failure diagnostics tries to match argument type
858
- // to different "candidate" parameters.
859
- if (params.size () != paramList->size ())
860
- return ;
861
-
862
- break ;
863
- }
854
+ // Arguments and parameters are not guaranteed to always line-up
855
+ // perfectly, e.g. failure diagnostics tries to match argument type
856
+ // to different "candidate" parameters.
857
+ if (params.size () != paramList->size ())
858
+ return ;
864
859
865
860
// Note which parameters have default arguments and/or function builders.
866
861
for (auto i : range (0 , params.size ())) {
You can’t perform that action at this time.
0 commit comments