aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bytecode/Reader
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-13 14:57:53 +0000
committerChris Lattner <sabre@nondot.org>2003-10-13 14:57:53 +0000
commit7dc3a2e6310ecec60826e12bf87ba5afb8e615cd (patch)
treec8f3d9c3cd49b014598b024ac92aeccb65fd2d98 /lib/Bytecode/Reader
parent5af41974c3876ce02950ff9d371330ef0826603d (diff)
downloadexternal_llvm-7dc3a2e6310ecec60826e12bf87ba5afb8e615cd.zip
external_llvm-7dc3a2e6310ecec60826e12bf87ba5afb8e615cd.tar.gz
external_llvm-7dc3a2e6310ecec60826e12bf87ba5afb8e615cd.tar.bz2
Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index 8713855..e8e1afd 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -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)