Skip to content

Commit 066cb8b

Browse files
committed
SIL: One more SILPrinter fix
1 parent acab50b commit 066cb8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/SIL/IR/SILPrinter.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,9 +2464,11 @@ class SILPrinter : public SILInstructionVisitor<SILPrinter> {
24642464
void visitOpenPackElementInst(OpenPackElementInst *OPEI) {
24652465
auto env = OPEI->getOpenedGenericEnvironment();
24662466
auto subs = env->getPackElementContextSubstitutions();
2467-
*this << Ctx.getID(OPEI->getIndexOperand())
2468-
<< " of " << subs.getGenericSignature()
2469-
<< " at ";
2467+
*this << Ctx.getID(OPEI->getIndexOperand()) << " of ";
2468+
PrintOptions Opts;
2469+
Opts.PrintInverseRequirements = true;
2470+
subs.getGenericSignature().print(PrintState.OS, Opts);
2471+
*this << " at ";
24702472
printSubstitutions(subs);
24712473
// The shape class in the opened environment is a canonical interface
24722474
// type, which won't resolve in the generic signature we just printed.

0 commit comments

Comments
 (0)