[llvm-commits] CVS: llvm/utils/TableGen/FileParser.y
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 5 22:43:07 PST 2002
Changes in directory llvm/utils/TableGen:
FileParser.y updated: 1.3 -> 1.4
---
Log message:
Fix bug
---
Diffs of the changes:
Index: llvm/utils/TableGen/FileParser.y
diff -u llvm/utils/TableGen/FileParser.y:1.3 llvm/utils/TableGen/FileParser.y:1.4
--- llvm/utils/TableGen/FileParser.y:1.3 Thu Dec 5 21:55:39 2002
+++ llvm/utils/TableGen/FileParser.y Thu Dec 5 22:42:16 2002
@@ -92,8 +92,8 @@
// Loop over bits, assigning values as appropriate...
for (unsigned i = 0, e = BitList->size(); i != e; ++i) {
unsigned Bit = (*BitList)[i];
- if (NewVal->getBit(i)) {
- err() << "Cannot set bit #" << i << " of value '" << ValName
+ if (NewVal->getBit(Bit)) {
+ err() << "Cannot set bit #" << Bit << " of value '" << ValName
<< "' more than once!\n";
abort();
}
More information about the llvm-commits
mailing list