File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -11165,25 +11165,25 @@ void OverloadCandidateSet::PerfectViableFunction(
11165
11165
11166
11166
Best = end();
11167
11167
for (auto It = begin(); It != end(); ++It) {
11168
- if (It->isPerfectMatch(S.getASTContext())) {
11169
- if (Best == end()) {
11170
- Best = It;
11171
- } else {
11172
- if (Best->Function && It->Function) {
11173
- FunctionDecl *D =
11174
- S.getMoreConstrainedFunction(Best->Function, It->Function);
11175
- if (D == nullptr) {
11176
- Best = end();
11177
- break;
11178
- }
11179
- if (D == It->Function)
11180
- Best = It;
11181
- continue;
11182
- }
11168
+ if (!It->isPerfectMatch(S.getASTContext()))
11169
+ continue;
11170
+ if (Best == end()) {
11171
+ Best = It;
11172
+ continue;
11173
+ }
11174
+ if (Best->Function && It->Function) {
11175
+ FunctionDecl *D =
11176
+ S.getMoreConstrainedFunction(Best->Function, It->Function);
11177
+ if (D == nullptr) {
11183
11178
Best = end();
11184
11179
break;
11185
11180
}
11181
+ if (D == It->Function)
11182
+ Best = It;
11183
+ continue;
11186
11184
}
11185
+ Best = end();
11186
+ break;
11187
11187
}
11188
11188
}
11189
11189
You can’t perform that action at this time.
0 commit comments