@@ -4634,7 +4634,8 @@ AnyFunctionType::getAutoDiffDerivativeFunctionLinearMapType(
4634
4634
if (!resultTan)
4635
4635
return llvm::make_error<DerivativeFunctionTypeError>(
4636
4636
this , DerivativeFunctionTypeError::Kind::NonDifferentiableResult,
4637
- std::make_pair (originalResultType, unsigned (originalResult.index )));
4637
+ DerivativeFunctionTypeError::TypeAndIndex (
4638
+ originalResultType, unsigned (originalResult.index )));
4638
4639
4639
4640
if (!originalResult.isSemanticResultParameter )
4640
4641
resultTanTypes.push_back (resultTan->getType ());
@@ -4664,7 +4665,7 @@ AnyFunctionType::getAutoDiffDerivativeFunctionLinearMapType(
4664
4665
this ,
4665
4666
DerivativeFunctionTypeError::Kind::
4666
4667
NonDifferentiableDifferentiabilityParameter,
4667
- std::make_pair (paramType, i));
4668
+ DerivativeFunctionTypeError::TypeAndIndex (paramType, i));
4668
4669
4669
4670
differentialParams.push_back (AnyFunctionType::Param (
4670
4671
paramTan->getType (), Identifier (), diffParam.getParameterFlags ()));
@@ -4712,7 +4713,7 @@ AnyFunctionType::getAutoDiffDerivativeFunctionLinearMapType(
4712
4713
this ,
4713
4714
DerivativeFunctionTypeError::Kind::
4714
4715
NonDifferentiableDifferentiabilityParameter,
4715
- std::make_pair (paramType, i));
4716
+ DerivativeFunctionTypeError::TypeAndIndex (paramType, i));
4716
4717
4717
4718
if (diffParam.isAutoDiffSemanticResult ()) {
4718
4719
if (paramType->isVoid ())
0 commit comments