IDE: fix printTypeInterface

The missing module was causing not only a crash in conformance lookup,
but full qualification for a generic parameter, which shouldn't ever be
needed.
This commit is contained in:
Kavon Farvardin
2024-02-10 22:34:49 -08:00
parent 8125e609e1
commit 75bff92b62
3 changed files with 8 additions and 7 deletions

View File

@@ -177,6 +177,7 @@ printTypeInterface(ModuleDecl *M, Type Ty, ASTPrinter &Printer,
PrintOptions Options = PrintOptions::printTypeInterface(
Ty.getPointer(),
Ty->getASTContext().TypeCheckerOpts.PrintFullConvention);
Options.CurrentModule = M;
ND->print(Printer, Options);
printTypeNameToString(Ty, TypeName);
return false;