Skip to content

Commit e6b39f7

Browse files
author
Marc Rasi
committed
type-check all @Derivative attributes in the module
1 parent 8dfd83b commit e6b39f7

File tree

5 files changed

+167
-100
lines changed

5 files changed

+167
-100
lines changed

lib/SILOptimizer/Utils/Differentiation/Common.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,6 @@ SILDifferentiabilityWitness *getOrCreateMinimalASTDifferentiabilityWitness(
734734
if (existingWitness)
735735
return existingWitness;
736736

737-
assert(original->isExternalDeclaration() &&
738-
"SILGen should create differentiability witnesses for all function "
739-
"definitions with explicit differentiable attributes");
740-
741737
return SILDifferentiabilityWitness::createDeclaration(
742738
module, SILLinkage::PublicExternal, original,
743739
minimalConfig->parameterIndices, minimalConfig->resultIndices,

0 commit comments

Comments
 (0)