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 @@ -11157,25 +11157,25 @@ void OverloadCandidateSet::PerfectViableFunction(
11157
11157
11158
11158
Best = end();
11159
11159
for (auto It = begin(); It != end(); ++It) {
11160
- if (It->isPerfectMatch(S.getASTContext())) {
11161
- if (Best == end()) {
11162
- Best = It;
11163
- } else {
11164
- if (Best->Function && It->Function) {
11165
- FunctionDecl *D =
11166
- S.getMoreConstrainedFunction(Best->Function, It->Function);
11167
- if (D == nullptr) {
11168
- Best = end();
11169
- break;
11170
- }
11171
- if (D == It->Function)
11172
- Best = It;
11173
- continue;
11174
- }
11160
+ if (!It->isPerfectMatch(S.getASTContext()))
11161
+ continue;
11162
+ if (Best == end()) {
11163
+ Best = It;
11164
+ continue;
11165
+ }
11166
+ if (Best->Function && It->Function) {
11167
+ FunctionDecl *D =
11168
+ S.getMoreConstrainedFunction(Best->Function, It->Function);
11169
+ if (D == nullptr) {
11175
11170
Best = end();
11176
11171
break;
11177
11172
}
11173
+ if (D == It->Function)
11174
+ Best = It;
11175
+ continue;
11178
11176
}
11177
+ Best = end();
11178
+ break;
11179
11179
}
11180
11180
}
11181
11181
You can’t perform that action at this time.
0 commit comments