Skip to content

Commit 635e90b

Browse files
committed
Sema: getValueInterfaceType() is getInterfaceType()->getReferenceStorageReferent()
1 parent fb3ad9a commit 635e90b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckInvertible.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ bool StorageVisitor::visit(NominalTypeDecl *nominal, DeclContext *dc) {
342342
// Walk the stored properties of classes and structs.
343343
if (isa<StructDecl>(nominal) || isa<ClassDecl>(nominal)) {
344344
for (auto property : nominal->getStoredProperties()) {
345-
auto propertyType = dc->mapTypeIntoContext(property->getInterfaceType())
346-
->getRValueType()->getReferenceStorageReferent();
345+
auto propertyType = dc->mapTypeIntoContext(
346+
property->getValueInterfaceType());
347347
if ((*this)(property, propertyType))
348348
return true;
349349
}

0 commit comments

Comments
 (0)