mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Fix bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23ffa4a488
commit
28c2d409a5
@ -92,8 +92,8 @@ static void setValue(const std::string &ValName,
|
|||||||
// Loop over bits, assigning values as appropriate...
|
// Loop over bits, assigning values as appropriate...
|
||||||
for (unsigned i = 0, e = BitList->size(); i != e; ++i) {
|
for (unsigned i = 0, e = BitList->size(); i != e; ++i) {
|
||||||
unsigned Bit = (*BitList)[i];
|
unsigned Bit = (*BitList)[i];
|
||||||
if (NewVal->getBit(i)) {
|
if (NewVal->getBit(Bit)) {
|
||||||
err() << "Cannot set bit #" << i << " of value '" << ValName
|
err() << "Cannot set bit #" << Bit << " of value '" << ValName
|
||||||
<< "' more than once!\n";
|
<< "' more than once!\n";
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
@ -92,8 +92,8 @@ static void setValue(const std::string &ValName,
|
|||||||
// Loop over bits, assigning values as appropriate...
|
// Loop over bits, assigning values as appropriate...
|
||||||
for (unsigned i = 0, e = BitList->size(); i != e; ++i) {
|
for (unsigned i = 0, e = BitList->size(); i != e; ++i) {
|
||||||
unsigned Bit = (*BitList)[i];
|
unsigned Bit = (*BitList)[i];
|
||||||
if (NewVal->getBit(i)) {
|
if (NewVal->getBit(Bit)) {
|
||||||
err() << "Cannot set bit #" << i << " of value '" << ValName
|
err() << "Cannot set bit #" << Bit << " of value '" << ValName
|
||||||
<< "' more than once!\n";
|
<< "' more than once!\n";
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user