[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h

Reid Spencer reid at x10sys.com
Sun Feb 25 23:45:57 PST 2007



Changes in directory llvm/include/llvm/ADT:

APInt.h updated: 1.20 -> 1.21
---
Log message:

Make isNegative() a const function since it doesn't modify the APInt.


---
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.20 llvm/include/llvm/ADT/APInt.h:1.21
--- llvm/include/llvm/ADT/APInt.h:1.20	Sun Feb 25 19:20:59 2007
+++ llvm/include/llvm/ADT/APInt.h	Mon Feb 26 01:45:40 2007
@@ -355,7 +355,7 @@
   /// This just tests the high bit of this APInt to determine if it is negative.
   /// @returns true if this APInt is negative, false otherwise
   /// @brief Determine sign of this APInt.
-  bool isNegative() {
+  bool isNegative() const {
     return (*this)[BitWidth - 1];
   }
 






More information about the llvm-commits mailing list