[AST] Stop using side-table for local discriminators

This commit is contained in:
Rintaro Ishizaki
2018-05-08 10:45:59 +09:00
parent dc76149150
commit 9fc09858ae
4 changed files with 13 additions and 24 deletions

View File

@@ -2024,7 +2024,8 @@ ModuleFile::getLocalTypeDecls(SmallVectorImpl<TypeDecl *> &results) {
for (auto entry : LocalTypeDecls->data()) {
auto DeclID = entry.first;
auto TD = cast<TypeDecl>(getDecl(DeclID));
TD->setLocalDiscriminator(entry.second);
assert(entry.second == TD->getLocalDiscriminator());
// TD->setLocalDiscriminator(entry.second);
results.push_back(TD);
}
}