summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-type.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-02 12:12:18 -0700
committerGitHub <noreply@github.com>2022-11-02 12:12:18 -0700
commit2e1c15f36b42374455228e37885bdb221f302050 (patch)
tree57ab722b87e1ef327860e4293bad9edc53bba965 /source/slang/slang-check-type.cpp
parentfb29bd32cc3404455ff92916a91c517823f486dd (diff)
Rework differential conformance dictionary checking. (#2483)
* Rework differential conformance dictionary checking. * Revert space changes. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-type.cpp')
-rw-r--r--source/slang/slang-check-type.cpp13
1 files changed, 0 insertions, 13 deletions
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<ForwardDifferentiableAttribute>())
- {
- auto diffTypeContext = this->getShared()->innermostDiffTypeContext();
- if (auto subtypeWitness = as<SubtypeWitness>(
- tryGetInterfaceConformanceWitness(result, getASTBuilder()->getDifferentiableInterface())))
- {
- diffTypeContext->registerDifferentiableType((DeclRefType*)result, subtypeWitness);
- }
- }
*outProperType = result;
return true;