git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149887
91177308-0d34-0410-b5e6-
96231b3b80d8
// The type table size is always specified correctly.
if (ID >= TypeList.size())
return 0;
// The type table size is always specified correctly.
if (ID >= TypeList.size())
return 0;
if (Type *Ty = TypeList[ID])
return Ty;
if (Type *Ty = TypeList[ID])
return Ty;
bool BitcodeReader::ParseTypeTable() {
if (Stream.EnterSubBlock(bitc::TYPE_BLOCK_ID_NEW))
return Error("Malformed block record");
bool BitcodeReader::ParseTypeTable() {
if (Stream.EnterSubBlock(bitc::TYPE_BLOCK_ID_NEW))
return Error("Malformed block record");
return ParseTypeTableBody();
}
return ParseTypeTableBody();
}
unsigned NumRecords = 0;
SmallString<64> TypeName;
unsigned NumRecords = 0;
SmallString<64> TypeName;
// Read all the records for this type table.
while (1) {
unsigned Code = Stream.ReadCode();
// Read all the records for this type table.
while (1) {
unsigned Code = Stream.ReadCode();