mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Fix a bug in getAllOnesValue() which broke
some test cases for bitwidth > 64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
768143547b
commit
6dbe233959
@ -605,7 +605,7 @@ APInt& APInt::set() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set all the bits in all the words.
|
// Set all the bits in all the words.
|
||||||
for (uint32_t i = 0; i < getNumWords() - 1; ++i)
|
for (uint32_t i = 0; i < getNumWords(); ++i)
|
||||||
pVal[i] = -1ULL;
|
pVal[i] = -1ULL;
|
||||||
// Clear the unused ones
|
// Clear the unused ones
|
||||||
return clearUnusedBits();
|
return clearUnusedBits();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user