[PDB] Fix logging of bad type indices

llvm-svn: 316386
This commit is contained in:
Reid Kleckner 2017-10-23 22:44:51 +00:00
parent ecddee27a8
commit 5d82f68d17
1 changed files with 1 additions and 1 deletions

View File

@ -324,9 +324,9 @@ static void remapTypesInSymbolRecord(ObjFile *File,
reinterpret_cast<TypeIndex *>(Contents.data() + Ref.Offset), Ref.Count);
for (TypeIndex &TI : TIs) {
if (!remapTypeIndex(TI, TypeOrItemMap)) {
TI = TypeIndex(SimpleTypeKind::NotTranslated);
log("ignoring symbol record in " + File->getName() +
" with bad type index 0x" + utohexstr(TI.getIndex()));
TI = TypeIndex(SimpleTypeKind::NotTranslated);
continue;
}
}