Skip to content

Commit 4461030

Browse files
committed
NCGenerics: fix AutoDiff tests
1 parent d5eb76e commit 4461030

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SIL/IR/SILPrinter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,6 +3109,7 @@ class SILPrinter : public SILInstructionVisitor<SILPrinter> {
31093109
*this << "] ";
31103110
if (auto witnessGenSig = witness->getDerivativeGenericSignature()) {
31113111
auto subPrinter = PrintOptions::printSIL();
3112+
subPrinter.PrintInverseRequirements = true;
31123113
witnessGenSig->print(PrintState.OS, subPrinter);
31133114
*this << " ";
31143115
}
@@ -4186,6 +4187,7 @@ void SILDifferentiabilityWitness::print(llvm::raw_ostream &OS,
41864187
// (<...>)?
41874188
if (auto derivativeGenSig = getDerivativeGenericSignature()) {
41884189
auto subPrinter = PrintOptions::printSIL();
4190+
subPrinter.PrintInverseRequirements = true;
41894191
derivativeGenSig->print(OS, subPrinter);
41904192
OS << " ";
41914193
}

0 commit comments

Comments
 (0)