File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4373,6 +4373,7 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
4373
4373
4374
4374
TC.validateDecl (ED);
4375
4375
TC.DeclsToFinalize .remove (ED);
4376
+ ED->setHasValidatedLayout ();
4376
4377
4377
4378
{
4378
4379
// Check for circular inheritance of the raw type.
@@ -4406,6 +4407,7 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
4406
4407
4407
4408
TC.validateDecl (SD);
4408
4409
TC.DeclsToFinalize .remove (SD);
4410
+ SD->setHasValidatedLayout ();
4409
4411
4410
4412
TC.addImplicitConstructors (SD);
4411
4413
@@ -4531,6 +4533,7 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
4531
4533
TC.validateDecl (CD);
4532
4534
TC.requestSuperclassLayout (CD);
4533
4535
TC.DeclsToFinalize .remove (CD);
4536
+ CD->setHasValidatedLayout ();
4534
4537
4535
4538
{
4536
4539
// Check for circular inheritance.
@@ -6911,7 +6914,7 @@ void TypeChecker::validateDecl(ValueDecl *D) {
6911
6914
}
6912
6915
6913
6916
if (!isa<ClassDecl>(nominal))
6914
- DeclsToFinalize. insert (nominal);
6917
+ requestNominalLayout (nominal);
6915
6918
6916
6919
break ;
6917
6920
}
You can’t perform that action at this time.
0 commit comments