[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 13 09:59:01 PDT 2003
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.81 -> 1.82
---
Log message:
Minor cleanups
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.81 llvm/lib/Bytecode/Reader/Reader.cpp:1.82
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.81 Mon Oct 13 09:34:59 2003
+++ llvm/lib/Bytecode/Reader/Reader.cpp Mon Oct 13 09:57:53 2003
@@ -234,13 +234,13 @@
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)
More information about the llvm-commits
mailing list