git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-06 04:42:16 +00:00
parent 23ffa4a488
commit 28c2d409a5
2 changed files with 4 additions and 4 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();
}

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