mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
getActiveWords should return the number of words, not the index of the
highest active words. Increment its result by one. llvm-svn: 34713
This commit is contained in:
parent
b1eaa7bd52
commit
949b3612a8
@ -450,7 +450,7 @@ public:
|
||||
/// APInt. This is used in conjunction with getActiveData to extract the raw
|
||||
/// value of the APInt.
|
||||
inline uint32_t getActiveWords() const {
|
||||
return whichWord(getActiveBits()-1);
|
||||
return whichWord(getActiveBits()-1) + 1;
|
||||
}
|
||||
|
||||
/// This function returns a pointer to the internal storage of the APInt.
|
||||
|
Loading…
Reference in New Issue
Block a user