Skip to content

Commit e53bd7f

Browse files
committed
AutoDiff: Check conformances on synthesized TangentVector struct
Once SF.SynthesizedDecls is gone, we can't rely on this happening for us.
1 parent 1b91218 commit e53bd7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Sema/DerivedConformanceDifferentiable.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ getOrSynthesizeTangentVectorStruct(DerivedConformance &derived, Identifier id) {
490490
member->setImplicit();
491491

492492
derived.addMembersToConformanceContext({structDecl});
493+
494+
TypeChecker::checkConformancesInContext(structDecl);
495+
493496
return structDecl;
494497
}
495498

0 commit comments

Comments
 (0)