swift-module-digester: always canonicalize super class types.

This commit is contained in:
Xi Ge
2018-09-27 11:16:11 -07:00
parent b9b568b6ec
commit 52e05e1495
3 changed files with 40 additions and 2 deletions

View File

@@ -978,7 +978,7 @@ SDKNodeInitInfo::SDKNodeInitInfo(SDKContext &Ctx, ValueDecl *VD)
if (auto *Super = CD->getSuperclassDecl()) {
SuperclassUsr = calculateUsr(Ctx, Super);
for (auto T = CD->getSuperclass(); T; T = T->getSuperclass()) {
SuperclassNames.push_back(getPrintedName(Ctx, T));
SuperclassNames.push_back(getPrintedName(Ctx, T->getCanonicalType()));
}
}
}