mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
Fix a bug in getAllOnesValue() which broke
some test cases for bitwidth > 64. llvm-svn: 35232
This commit is contained in:
parent
00a5cbf9e7
commit
427b6bec97
@ -605,7 +605,7 @@ APInt& APInt::set() {
|
||||
}
|
||||
|
||||
// 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;
|
||||
// Clear the unused ones
|
||||
return clearUnusedBits();
|
||||
|
Loading…
Reference in New Issue
Block a user