[SourceKit] Never try to report mangled names for archetypes without contexts. rdar://28094209

This commit is contained in:
Xi Ge
2016-10-24 16:55:57 -07:00
parent 05f45945ec
commit 7bd01b5ad1
3 changed files with 13 additions and 1 deletions

View File

@@ -658,7 +658,7 @@ static bool passCursorInfoForDecl(const ValueDecl *VD,
unsigned MangledTypeEnd = SS.size();
unsigned MangledContainerTypeStart = SS.size();
if (ContainerTy) {
if (ContainerTy && !ContainerTy->hasArchetype()) {
llvm::raw_svector_ostream OS(SS);
SwiftLangSupport::printTypeUSR(ContainerTy, OS);
}