We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cb48d commit 2a45cd2Copy full SHA for 2a45cd2
lib/AST/AutoDiff.cpp
@@ -505,9 +505,9 @@ TangentPropertyInfo TangentStoredPropertyRequest::evaluate(
505
TangentPropertyInfo::Error::Kind::OriginalPropertyNotDifferentiable);
506
}
507
// Get the parent `TangentVector` type.
508
- auto memberSubs = baseType->getMemberSubstitutionMap(
509
- originalField->getModuleContext(), originalField);
510
- auto parentTanType = parentTan->getType().subst(memberSubs);
+ auto parentTanType =
+ baseType->getAutoDiffTangentSpace(LookUpConformanceInModule(moduleDecl))
+ ->getType();
511
auto *parentTanStruct = parentTanType->getStructOrBoundGenericStruct();
512
// Error if parent `TangentVector` is not a struct.
513
if (!parentTanStruct) {
0 commit comments