[llvm-commits] [llvm] r46882 - /llvm/trunk/include/llvm/ADT/APSInt.h

Ted Kremenek kremenek at apple.com
Thu Feb 7 23:14:19 PST 2008


Author: kremenek
Date: Fri Feb  8 01:14:19 2008
New Revision: 46882

URL: http://llvm.org/viewvc/llvm-project?rev=46882&view=rev
Log:
Constified operator<< in APSInt.

Modified:
    llvm/trunk/include/llvm/ADT/APSInt.h

Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APSInt.h?rev=46882&r1=46881&r2=46882&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Fri Feb  8 01:14:19 2008
@@ -130,8 +130,8 @@
   // The remaining operators just wrap the logic of APInt, but retain the
   // signedness information.
   
-  APSInt operator<<(unsigned Bits) {
-    return APSInt(static_cast<APInt&>(*this) << Bits, IsUnsigned);
+  APSInt operator<<(unsigned Bits) const {
+    return APSInt(static_cast<const APInt&>(*this) << Bits, IsUnsigned);
   }  
   APSInt& operator<<=(unsigned Amt) {
     *this = *this << Amt;





More information about the llvm-commits mailing list