Skip to content

Commit ed4dc1b

Browse files
committed
Change Optional -> llvm::Optional
1 parent c453f2d commit ed4dc1b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5324,10 +5324,11 @@ class ConstraintSystem {
53245324
/// solution application target within the context.
53255325
///
53265326
/// \returns true if solution cannot be applied.
5327-
bool applySolutionToBody(
5328-
Solution &solution, TapExpr *tapExpr, DeclContext *&currentDC,
5329-
std::function<Optional<SyntacticElementTarget>(SyntacticElementTarget)>
5330-
rewriteTarget);
5327+
bool applySolutionToBody(Solution &solution, TapExpr *tapExpr,
5328+
DeclContext *&currentDC,
5329+
std::function<llvm::Optional<SyntacticElementTarget>(
5330+
SyntacticElementTarget)>
5331+
rewriteTarget);
53315332

53325333
/// Reorder the disjunctive clauses for a given expression to
53335334
/// increase the likelihood that a favored constraint will be successfully

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3696,7 +3696,7 @@ ParserResult<CustomAttr> Parser::parseCustomAttribute(
36963696

36973697
argList = ArgumentList::createParsed(
36983698
Context, lParenLoc, {Argument::unlabeled(CCE)}, rParenLoc,
3699-
/*trailingClosureIdx=*/None);
3699+
/*trailingClosureIdx=*/llvm::None);
37003700
status.setHasCodeCompletionAndIsError();
37013701
} else {
37023702
// If we have no local context to parse the initial value into, create

lib/Sema/BuilderTransform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class ResultBuilderTransform
201201
// A statement that doesn't contain the code completion expression can't
202202
// influence the type of the code completion expression, so we can skip
203203
// it to improve performance.
204-
return None;
204+
return llvm::None;
205205
}
206206

207207
auto result = visit(stmt, resultVar);

0 commit comments

Comments
 (0)