Skip to content

Commit 5388923

Browse files
committed
[ConstraintSystem] Extend isResultBuilderMethodReference to include buildIf
1 parent 60c2053 commit 5388923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7963,9 +7963,9 @@ bool constraints::isResultBuilderMethodReference(ASTContext &ctx,
79637963
if (!(UDE && UDE->isImplicit()))
79647964
return false;
79657965

7966-
SmallVector<Identifier, 4> builderMethods(
7966+
SmallVector<Identifier, 5> builderMethods(
79677967
{ctx.Id_buildBlock, ctx.Id_buildExpression, ctx.Id_buildPartialBlock,
7968-
ctx.Id_buildFinalResult});
7968+
ctx.Id_buildFinalResult, ctx.Id_buildIf});
79697969

79707970
return llvm::any_of(builderMethods, [&](const Identifier &methodId) {
79717971
return UDE->getName().compare(DeclNameRef(methodId)) == 0;

0 commit comments

Comments
 (0)