Constified operator<< in APSInt.
[oota-llvm.git] / include / llvm / ADT / APSInt.h
index 0b98f74bd0b8827d81a15a169038aca9efc1a96b..705585c8a0c976da8a702ccdc9881f2893a471e0 100644 (file)
@@ -130,8 +130,8 @@ public:
   // 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;