Skip to content

Commit 33be7a2

Browse files
committed
[Typechecker] Don't use PropertyWrapperMutability for isSelfLValue check
1 parent 0cd5906 commit 33be7a2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Sema/TypeCheckStorage.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -765,14 +765,6 @@ static Expr *buildStorageReference(AccessorDecl *accessor,
765765
if (isMemberLValue)
766766
isSelfLValue |= storage->isSetterMutating();
767767

768-
// If we're accessing a property wrapper, determine if
769-
// the self requires an lvalue.
770-
if (auto mut = propertyWrapperMutability(storage)) {
771-
isSelfLValue = mut->first;
772-
if (isMemberLValue)
773-
isSelfLValue |= mut->second;
774-
}
775-
776768
Expr *selfDRE =
777769
buildSelfReference(selfDecl, selfAccessKind, isSelfLValue,
778770
ctx);

0 commit comments

Comments
 (0)