Skip to content

Commit e12f4ef

Browse files
authored
Merge pull request #36354 from kavon/nfc-robustAsyncMarking
2 parents baca62f + 0ff976e commit e12f4ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,11 @@ namespace {
15751575

15761576
// is it an access to a property?
15771577
if (isPropOrSubscript(decl)) {
1578+
// we assume let-bound properties are taken care of elsewhere,
1579+
// since they are never implicitly async.
1580+
assert(!isa<VarDecl>(decl) || cast<VarDecl>(decl)->isLet() == false
1581+
&& "unexpected let-bound property; never implicitly async!");
1582+
15781583
if (auto declRef = dyn_cast_or_null<DeclRefExpr>(context)) {
15791584
if (usageEnv(declRef) == VarRefUseEnv::Read) {
15801585

0 commit comments

Comments
 (0)