Constified operator<< in APSInt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46882 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek
2008-02-08 07:14:19 +00:00
parent 60783304f6
commit 86383e1f7c

View File

@@ -130,8 +130,8 @@ public:
// The remaining operators just wrap the logic of APInt, but retain the // The remaining operators just wrap the logic of APInt, but retain the
// signedness information. // signedness information.
APSInt operator<<(unsigned Bits) { APSInt operator<<(unsigned Bits) const {
return APSInt(static_cast<APInt&>(*this) << Bits, IsUnsigned); return APSInt(static_cast<const APInt&>(*this) << Bits, IsUnsigned);
} }
APSInt& operator<<=(unsigned Amt) { APSInt& operator<<=(unsigned Amt) {
*this = *this << Amt; *this = *this << Amt;