[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 28 19:04:04 PST 2004
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.103 -> 1.104
---
Log message:
Make error message a bit nicer.
Contributed by Reid Spencer
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.103 llvm/lib/Bytecode/Reader/Reader.cpp:1.104
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.103 Sun Feb 8 22:13:38 2004
+++ llvm/lib/Bytecode/Reader/Reader.cpp Sun Mar 28 18:16:01 2004
@@ -303,7 +303,7 @@
V = getValue(Typ, slot, false); // Find mapping...
}
if (V == 0)
- throw std::string("Failed value look-up.");
+ throw "Failed value look-up for name '" + Name + "'";
BCR_TRACE(4, "Map: '" << Name << "' to #" << slot << ":" << *V;
if (!isa<Instruction>(V)) std::cerr << "\n");
More information about the llvm-commits
mailing list