Minor cleanups

llvm-svn: 9079
This commit is contained in:
Chris Lattner 2003-10-13 14:57:53 +00:00
parent e859403772
commit aa78cc9e5d
1 changed files with 2 additions and 2 deletions

View File

@ -234,13 +234,13 @@ void BytecodeParser::ParseSymbolTable(const unsigned char *&Buf,
BCR_TRACE(3, "Plane Type: '" << *Ty << "' with " << NumEntries <<
" entries\n");
for (unsigned i = 0; i < NumEntries; ++i) {
for (unsigned i = 0; i != NumEntries; ++i) {
// Symtab entry: [def slot #][name]
unsigned slot;
if (read_vbr(Buf, EndBuf, slot)) throw Error_readvbr;
std::string Name;
if (read(Buf, EndBuf, Name, false)) // Not aligned...
throw std::string("Buffer not aligned.");
throw std::string("Failed reading symbol name.");
Value *V = 0;
if (Typ == Type::TypeTyID)