From 3ef3fdf837db4520ea5f63b2854bbc8aa7c86d9f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Dec 2002 04:42:16 +0000 Subject: [PATCH] Fix bug llvm-svn: 4942 --- llvm/support/tools/TableGen/FileParser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/support/tools/TableGen/FileParser.y b/llvm/support/tools/TableGen/FileParser.y index ff3ec40484c4..76f07e465f87 100644 --- a/llvm/support/tools/TableGen/FileParser.y +++ b/llvm/support/tools/TableGen/FileParser.y @@ -92,8 +92,8 @@ static void setValue(const std::string &ValName, // 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(); }