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]; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits