[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h
Reid Spencer
reid at x10sys.com
Tue Feb 27 18:21:05 PST 2007
Changes in directory llvm/include/llvm/ADT:
APInt.h updated: 1.28 -> 1.29
---
Log message:
getActiveWords should return the number of words, not the index of the
highest active words. Increment its result by one.
---
Diffs of the changes: (+1 -1)
APInt.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/ADT/APInt.h
diff -u llvm/include/llvm/ADT/APInt.h:1.28 llvm/include/llvm/ADT/APInt.h:1.29
--- llvm/include/llvm/ADT/APInt.h:1.28 Tue Feb 27 17:47:33 2007
+++ llvm/include/llvm/ADT/APInt.h Tue Feb 27 20:20:49 2007
@@ -450,7 +450,7 @@
/// 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.
More information about the llvm-commits
mailing list