Skip to content

Commit 51a4a91

Browse files
committed
Sema: Mark a PatternBindingDecl as implicit in the builder transform
1 parent fa4f7dd commit 51a4a91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/BuilderTransform.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,8 @@ class BuilderClosureRewriter
10641064
auto pbd = PatternBindingDecl::create(
10651065
ctx, SourceLoc(), StaticSpellingKind::None, temporaryVar->getLoc(),
10661066
pattern, SourceLoc(), initExpr, dc);
1067+
if (temporaryVar->isImplicit())
1068+
pbd->setImplicit();
10671069
elements.push_back(temporaryVar);
10681070
elements.push_back(pbd);
10691071
}

0 commit comments

Comments
 (0)