@@ -170,9 +170,8 @@ static void determineBestChoicesInContext(
170
170
}
171
171
172
172
// Match arguments to the given overload choice.
173
- auto matchArguments =
174
- [&](OverloadChoice choice,
175
- FunctionType *overloadType) -> Optional<MatchCallArgumentResult> {
173
+ auto matchArguments = [&](OverloadChoice choice, FunctionType *overloadType)
174
+ -> llvm::Optional<MatchCallArgumentResult> {
176
175
auto *decl = choice.getDeclOrNull ();
177
176
assert (decl);
178
177
@@ -187,7 +186,7 @@ static void determineBestChoicesInContext(
187
186
return matchCallArguments (argsWithLabels, overloadType->getParams (),
188
187
paramListInfo,
189
188
argumentList->getFirstTrailingClosureIndex (),
190
- /* allow fixes*/ false , listener, None);
189
+ /* allow fixes*/ false , listener, llvm:: None);
191
190
};
192
191
193
192
// Determine whether the candidate type is a subclass of the superclass
@@ -634,13 +633,13 @@ selectBestBindingDisjunction(ConstraintSystem &cs,
634
633
return firstBindDisjunction;
635
634
}
636
635
637
- Optional<std::pair<Constraint *, llvm::TinyPtrVector<Constraint *>>>
636
+ llvm:: Optional<std::pair<Constraint *, llvm::TinyPtrVector<Constraint *>>>
638
637
ConstraintSystem::selectDisjunction () {
639
638
SmallVector<Constraint *, 4 > disjunctions;
640
639
641
640
collectDisjunctions (disjunctions);
642
641
if (disjunctions.empty ())
643
- return None;
642
+ return llvm:: None;
644
643
645
644
if (auto *disjunction = selectBestBindingDisjunction (*this , disjunctions))
646
645
return std::make_pair (disjunction, llvm::TinyPtrVector<Constraint *>());
@@ -678,5 +677,5 @@ ConstraintSystem::selectDisjunction() {
678
677
if (bestDisjunction != disjunctions.end ())
679
678
return std::make_pair (*bestDisjunction, favorings[*bestDisjunction]);
680
679
681
- return None;
680
+ return llvm:: None;
682
681
}
0 commit comments