llvm-svn: 4942
This commit is contained in:
Chris Lattner 2002-12-06 04:42:16 +00:00
parent 3e6e191e39
commit 3ef3fdf837
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}