From 2e1c15f36b42374455228e37885bdb221f302050 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 2 Nov 2022 12:12:18 -0700 Subject: Rework differential conformance dictionary checking. (#2483) * Rework differential conformance dictionary checking. * Revert space changes. Co-authored-by: Yong He --- source/slang/slang-check-type.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source/slang/slang-check-type.cpp') diff --git a/source/slang/slang-check-type.cpp b/source/slang/slang-check-type.cpp index 6bc4b9d36..d402dde03 100644 --- a/source/slang/slang-check-type.cpp +++ b/source/slang/slang-check-type.cpp @@ -320,19 +320,6 @@ namespace Slang getSink()->diagnose(typeExp.exp, Diagnostics::cannotDefinePtrTypeToManagedResource); } } - - // Differentiable type checking. - // TODO: This can be super slow. Switch to caching the result asap. - if (this->m_parentFunc && - this->m_parentFunc->findModifier()) - { - auto diffTypeContext = this->getShared()->innermostDiffTypeContext(); - if (auto subtypeWitness = as( - tryGetInterfaceConformanceWitness(result, getASTBuilder()->getDifferentiableInterface()))) - { - diffTypeContext->registerDifferentiableType((DeclRefType*)result, subtypeWitness); - } - } *outProperType = result; return true; -- cgit v1.2.3