forked from OSchip/llvm-project
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
66d0d572c2
commit
f8470272a7
|
@ -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