Skip to content

Commit 6694afa

Browse files
committed
Sema: finalizeDecl() no longer forces stored property lowering of structs
1 parent 2be7573 commit 6694afa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4628,10 +4628,10 @@ static void finalizeType(TypeChecker &TC, NominalTypeDecl *nominal) {
46284628
// affects vtable layout.
46294629
TC.addImplicitConstructors(CD);
46304630
CD->addImplicitDestructor();
4631-
}
46324631

4633-
// Force lowering of stored properties.
4634-
(void) nominal->getStoredProperties();
4632+
// Force lowering of stored properties.
4633+
(void) nominal->getStoredProperties();
4634+
}
46354635

46364636
if (isa<ClassDecl>(nominal) || isa<ProtocolDecl>(nominal)) {
46374637
for (auto *D : nominal->getMembers()) {

0 commit comments

Comments
 (0)