@@ -1609,7 +1609,8 @@ static ValueDecl *getBuildComplexEqualitySerialExecutorRef(ASTContext &ctx,
16091609static ValueDecl *getAutoDiffCreateLinearMapContext (ASTContext &ctx,
16101610 Identifier id) {
16111611 return getBuiltinFunction (
1612- id, {BuiltinIntegerType::getWordType (ctx)}, ctx.TheNativeObjectType );
1612+ ctx, id, _thin, _generics (_unrestricted),
1613+ _parameters (_metatype (_typeparam (0 ))), _nativeObject);
16131614}
16141615
16151616static ValueDecl *getAutoDiffProjectTopLevelSubcontext (ASTContext &ctx,
@@ -1621,8 +1622,8 @@ static ValueDecl *getAutoDiffProjectTopLevelSubcontext(ASTContext &ctx,
16211622static ValueDecl *getAutoDiffAllocateSubcontext (ASTContext &ctx,
16221623 Identifier id) {
16231624 return getBuiltinFunction (
1624- id, {ctx. TheNativeObjectType , BuiltinIntegerType::getWordType (ctx)} ,
1625- ctx. TheRawPointerType );
1625+ ctx, id, _thin, _generics (_unrestricted) ,
1626+ _parameters (_nativeObject, _metatype ( _typeparam ( 0 ))), _rawPointer );
16261627}
16271628
16281629static ValueDecl *getPoundAssert (ASTContext &Context, Identifier Id) {
@@ -2949,13 +2950,13 @@ ValueDecl *swift::getBuiltinValueDecl(ASTContext &Context, Identifier Id) {
29492950 case BuiltinValueKind::HopToActor:
29502951 return getHopToActor (Context, Id);
29512952
2952- case BuiltinValueKind::AutoDiffCreateLinearMapContext :
2953+ case BuiltinValueKind::AutoDiffCreateLinearMapContextWithType :
29532954 return getAutoDiffCreateLinearMapContext (Context, Id);
29542955
29552956 case BuiltinValueKind::AutoDiffProjectTopLevelSubcontext:
29562957 return getAutoDiffProjectTopLevelSubcontext (Context, Id);
29572958
2958- case BuiltinValueKind::AutoDiffAllocateSubcontext :
2959+ case BuiltinValueKind::AutoDiffAllocateSubcontextWithType :
29592960 return getAutoDiffAllocateSubcontext (Context, Id);
29602961 }
29612962
0 commit comments