Minor cleanups
authorChris Lattner <sabre@nondot.org>
Mon, 13 Oct 2003 14:57:53 +0000 (14:57 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Oct 2003 14:57:53 +0000 (14:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9079 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index 8713855b271070f4596c1386a49f854be34ed237..e8e1afd52e803ed759937dd81edb6870b5df3742 100644 (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)