Update SourceKit for getInterfaceType() changes

This commit is contained in:
Robert Widmann
2019-09-23 16:50:19 -07:00
parent 792e1db448
commit 1233cdf596
8 changed files with 13 additions and 31 deletions

View File

@@ -778,11 +778,11 @@ static bool passCursorInfoForDecl(SourceFile* SF,
unsigned USREnd = SS.size();
unsigned TypenameBegin = SS.size();
if (VD->hasInterfaceType()) {
if (auto vdType = VD->getInterfaceType()) {
llvm::raw_svector_ostream OS(SS);
PrintOptions Options;
Options.PrintTypeAliasUnderlyingType = true;
VD->getInterfaceType().print(OS, Options);
vdType.print(OS, Options);
}
unsigned TypenameEnd = SS.size();